[vlc-devel] commit: qt4: try to read playlist headers state in same group we write them ( Ilkka Ollakka )

git version control git at videolan.org
Tue Feb 16 18:34:55 CET 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Feb 14 23:12:38 2010 +0200| [a3cc30cad8aa3b5c435cd51c10eea39c2bad1114] | committer: Ilkka Ollakka 

qt4: try to read playlist headers state in same group we write them

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

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

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 0d76a5a..4ceeaeb 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -312,6 +312,7 @@ void StandardPLPanel::createTreeView()
     /* setModel after setSortingEnabled(true), or the model will sort immediately! */
     treeView->setModel( model );
 
+    getSettings()->beginGroup("Playlist");
     if( getSettings()->contains( "headerStateV2" ) )
     {
         treeView->header()->restoreState(
@@ -326,6 +327,7 @@ void StandardPLPanel::createTreeView()
             else if( m == COLUMN_DURATION ) treeView->header()->resizeSection( c, 80 );
         }
     }
+    getSettings()->endGroup();
 
     /* Connections for the TreeView */
     CONNECT( treeView, activated( const QModelIndex& ),




More information about the vlc-devel mailing list