Noatun: Crashing at empty items in the playlist

Signed-off-by: Roman Savochenko <roman@home.home>
pull/54/head
Roman Savochenko 12 months ago
parent 268aed5464
commit cf9759fa99

@ -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);

@ -797,6 +797,9 @@ void View::init()
list->openGlobal(internalURL);
}
for(PlaylistItem item = SPL->getFirst(); item; item = SPL->getAfter(item))
if(item.url().path().isEmpty()) item.remove();
TDEConfig &config = *TDEGlobal::config();
config.setGroup("splitplaylist");

Loading…
Cancel
Save