Playlist tweaks. remove dead / orphaned nodes that vlc doesn't clean up in teh xml.
[vlc-remote] / playlistmainwindow.cpp
index 965098d..61a4717 100644 (file)
@@ -298,7 +298,10 @@ void PlayListMainWindow::parsePlayListItem(QDomNode *node, QString *extension, b
         else {
             el->type = "node";
             el->extension = getExtension(el->path, NULL);
-            this->mContents->append(*el);
+            // empty nodes appear in the playlist when they can't be played!
+            if (node->hasChildNodes()) {
+                this->mContents->append(*el);
+            }
             delete el;
             // now parse the child nodes as leaf.
             if (node->hasChildNodes()) {