summaryrefslogtreecommitdiffstats
path: root/noatun/library
diff options
context:
space:
mode:
authorRoman Savochenko <roman@home.home>2023-11-19 12:07:18 +0200
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-20 15:00:45 +0900
commitde42315f33821bc5c44f2ce831f45ff88f609221 (patch)
treec494511637f2fcd1b684d38b24dbe50da1103734 /noatun/library
parentd40ab4807e231c114dd766d9745b515e0a5e21fb (diff)
downloadtdemultimedia-de42315f33821bc5c44f2ce831f45ff88f609221.tar.gz
tdemultimedia-de42315f33821bc5c44f2ce831f45ff88f609221.zip
Noatun: Crashing at empty items in the playlist
Signed-off-by: Roman Savochenko <roman@home.home> (cherry picked from commit cf9759fa992775e54adc65e127ead1989821cd54)
Diffstat (limited to 'noatun/library')
-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);