[vlc-devel] commit: qt4: cleanup plitem (Ilkka Ollakka )

git version control git at videolan.org
Tue Aug 18 09:41:40 CEST 2009


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Aug 16 22:24:13 2009 +0300| [9b4308cbc3aabb4c6606e0dd3832c84a80b2ead2] | committer: Ilkka Ollakka 

qt4: cleanup plitem

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b4308cbc3aabb4c6606e0dd3832c84a80b2ead2
---

 .../gui/qt4/components/playlist/playlist_item.cpp  |    2 +-
 .../gui/qt4/components/playlist/playlist_item.hpp  |    5 -----
 2 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_item.cpp b/modules/gui/qt4/components/playlist/playlist_item.cpp
index 6e78871..eb4c88f 100644
--- a/modules/gui/qt4/components/playlist/playlist_item.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_item.cpp
@@ -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 );
diff --git a/modules/gui/qt4/components/playlist/playlist_item.hpp b/modules/gui/qt4/components/playlist/playlist_item.hpp
index 33554f3..891e036 100644
--- a/modules/gui/qt4/components/playlist/playlist_item.hpp
+++ b/modules/gui/qt4/components/playlist/playlist_item.hpp
@@ -28,13 +28,8 @@
 # include "config.h"
 #endif
 
-#include "components/playlist/playlist_model.hpp"
-
-#include <QString>
 #include <QList>
 
-class QSettings;
-class PLModel;
 
 class PLItem
 {




More information about the vlc-devel mailing list