[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:57:29 CEST 2008


vlc | branch: 0.9-bugfix | Antoine Cellerier <dionoea at videolan.org> | Fri Sep 19 01:59:15 2008 +0200| [25590dac695f11f651fd3552efb80d29e3e65e01] | committer: Antoine Cellerier 

Do not lose the playlist columns when switching to a different view.
(cherry picked from commit 98449e55df487ed530f23a3d6a757c6eab79bf17)

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

 .../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 fd72d40..72c4a37 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -850,6 +850,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();
         }
@@ -858,6 +859,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