]> git.sesse.net Git - vlc/commitdiff
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 c101d9ab252f50cd4c55dfa8c1bcd9012d273215..f17b7dfe6ce2fe9ed3a02a0cf3790201a28ef04e 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;
 }