]> git.sesse.net Git - vlc/commitdiff
Qt: simplify playlist item deletion
authorJakob Leben <jleben@videolan.org>
Sun, 31 Jan 2010 16:06:55 +0000 (17:06 +0100)
committerJakob Leben <jleben@videolan.org>
Sun, 31 Jan 2010 16:28:34 +0000 (17:28 +0100)
No need to do that check anymore.

modules/gui/qt4/components/playlist/playlist_model.cpp

index ba7c3e7df021cd7c3087b310fa1da574e1695739..da0fccf3fe326a41d6ec39a1a24d0c8d50302fa8 100644 (file)
@@ -808,10 +808,7 @@ void PLModel::doDeleteItem( PLItem *item, QModelIndexList *fullList )
         PL_UNLOCK;
         return;
     }
-    if( p_item->i_children == -1 )
-        playlist_DeleteFromInput( p_playlist, p_item->p_input, pl_Locked );
-    else
-        playlist_NodeDelete( p_playlist, p_item, true, false );
+    playlist_DeleteFromInput( p_playlist, p_item->p_input, pl_Locked );
     PL_UNLOCK;
 
     /* And finally, remove it from the tree */