[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:14:05 CEST 2009


vlc | branch: master | Besnard Jean-Baptiste <jbbesnard at actech-innovation.com> | Wed Jul 22 15:49:03 2009 +0200| [9a4af551c376ad7aee068c566cb593c200856fc1] | committer: Jean-Baptiste Kempf 

Qt : Fix the way playlist columns are saved

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 .../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 c101d9a..f17b7df 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -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;
 }




More information about the vlc-devel mailing list