summaryrefslogtreecommitdiffstats
path: root/noatun/library/downloader.cpp
diff options
context:
space:
mode:
authorRoman Savochenko <[email protected]>2023-11-19 12:07:18 +0200
committerRoman Savochenko <[email protected]>2023-11-19 12:07:18 +0200
commitcf9759fa992775e54adc65e127ead1989821cd54 (patch)
treedee6d77c935c9295abcc6c08c904ffdbd40d2933 /noatun/library/downloader.cpp
parent268aed5464ce7c432e3c7320495e3767d8381a2b (diff)
downloadtdemultimedia-cf9759fa992775e54adc65e127ead1989821cd54.tar.gz
tdemultimedia-cf9759fa992775e54adc65e127ead1989821cd54.zip
Noatun: Crashing at empty items in the playlist
Signed-off-by: Roman Savochenko <[email protected]>
Diffstat (limited to 'noatun/library/downloader.cpp')
-rw-r--r--noatun/library/downloader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noatun/library/downloader.cpp b/noatun/library/downloader.cpp
index 21fb7926..b8081626 100644
--- a/noatun/library/downloader.cpp
+++ b/noatun/library/downloader.cpp
@@ -86,6 +86,7 @@ void Downloader::start()
for (TQPtrListIterator<Downloader::QueueItem> i(*mUnstartedQueue); i.current(); ++i)
{
+ if((*i)->file.path().isEmpty()) continue;
(*i)->notifier->mLocalFilename = (*i)->local;
mQueue.append(*i);
emit enqueued((*i)->notifier, (*i)->file);