diff options
author | Roman Savochenko <roman@home.home> | 2023-11-19 12:07:18 +0200 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-20 15:00:45 +0900 |
commit | de42315f33821bc5c44f2ce831f45ff88f609221 (patch) | |
tree | c494511637f2fcd1b684d38b24dbe50da1103734 /noatun/modules/splitplaylist | |
parent | d40ab4807e231c114dd766d9745b515e0a5e21fb (diff) | |
download | tdemultimedia-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/modules/splitplaylist')
-rw-r--r-- | noatun/modules/splitplaylist/view.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noatun/modules/splitplaylist/view.cpp b/noatun/modules/splitplaylist/view.cpp index bfdd0112..b7481125 100644 --- a/noatun/modules/splitplaylist/view.cpp +++ b/noatun/modules/splitplaylist/view.cpp @@ -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"); |