[vlc-devel] commit: Qt : Fix the way playlist columns are saved	(Besnard Jean-Baptiste )
    git version control 
    git at videolan.org
       
    Wed Jul 22 20:16:10 CEST 2009
    
    
  
vlc | branch: 1.0-bugfix | Besnard Jean-Baptiste <jbbesnard at actech-innovation.com> | Wed Jul 22 15:49:03 2009 +0200| [22f830fa118b989c04ad7537cac35945a199dd17] | committer: Jean-Baptiste Kempf 
Qt : Fix the way playlist columns are saved
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 9a4af551c376ad7aee068c566cb593c200856fc1)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=22f830fa118b989c04ad7537cac35945a199dd17
---
 .../gui/qt4/components/playlist/playlist_model.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 31d1b18..dc89e65 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -104,7 +104,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;
 }
    
    
More information about the vlc-devel
mailing list