Qt : Fix the way playlist columns are saved
authorBesnard Jean-Baptiste <jbbesnard@actech-innovation.com>
Wed, 22 Jul 2009 13:49:03 +0000 (15:49 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 22 Jul 2009 18:12:54 +0000 (20:12 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/components/playlist/playlist_model.cpp

index c101d9a..f17b7df 100644 (file)
@@ -102,7 +102,8 @@ PLModel::PLModel( playlist_t *_p_playlist,  /* THEPL */
 
 PLModel::~PLModel()
 {
-    getSettings()->setValue( "qt-pl-showflags", rootItem->i_showflags );
+    if(i_depth == -1)
+        getSettings()->setValue( "qt-pl-showflags", rootItem->i_showflags );
     delCallbacks();
     delete rootItem;
 }