[vlc-devel] commit: Do not lose the playlist columns when switching to a different view . (Antoine Cellerier )

git version control git at videolan.org
Fri Sep 19 01:56:36 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Fri Sep 19 01:59:15 2008 +0200| [98449e55df487ed530f23a3d6a757c6eab79bf17] | committer: Antoine Cellerier 

Do not lose the playlist columns when switching to a different view.

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

 .../gui/qt4/components/playlist/playlist_model.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 6d3a7ef..6e853c8 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -851,6 +851,7 @@ void PLModel::viewchanged( int meta )
         {
             beginRemoveColumns( parent, index, index+1 );
             rootItem->i_showflags &= ~( meta );
+            getSettings()->setValue( "qt-pl-showflags", rootItem->i_showflags );
             rootItem->updateColumnHeaders();
             endRemoveColumns();
         }
@@ -859,6 +860,7 @@ void PLModel::viewchanged( int meta )
             /* Adding columns */
             beginInsertColumns( parent, index, index+1 );
             rootItem->i_showflags |= meta;
+            getSettings()->setValue( "qt-pl-showflags", rootItem->i_showflags );
             rootItem->updateColumnHeaders();
             endInsertColumns();
         }




More information about the vlc-devel mailing list