]> git.sesse.net Git - vlc/commitdiff
qt4: cleanup plitem
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 16 Aug 2009 19:24:13 +0000 (22:24 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Mon, 17 Aug 2009 19:44:11 +0000 (22:44 +0300)
modules/gui/qt4/components/playlist/playlist_item.cpp
modules/gui/qt4/components/playlist/playlist_item.hpp

index 6e78871986bb66cc550a7978320cbdfbab55b2a9..eb4c88f9121b4701532fda1325585dc15978fca0 100644 (file)
@@ -86,7 +86,7 @@ void PLItem::insertChild( PLItem *item, int i_pos, bool signal )
 
 void PLItem::remove( PLItem *removed, int i_depth )
 {
-    if( i_depth == DEPTH_SEL || parentItem )
+    if( i_depth == 1 /* DEPTH_SEL */ || parentItem )
     {
         int i_index = parentItem->children.indexOf( removed );
         parentItem->children.removeAt( i_index );
index 33554f31e80ce4b4c442c760af2907cde7284a3e..891e036945e8054a68c1055191e727e6972635a4 100644 (file)
 # include "config.h"
 #endif
 
-#include "components/playlist/playlist_model.hpp"
-
-#include <QString>
 #include <QList>
 
-class QSettings;
-class PLModel;
 
 class PLItem
 {