]> git.sesse.net Git - vlc/commitdiff
qt4: try to read playlist headers state in same group we write them
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 14 Feb 2010 21:12:38 +0000 (23:12 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 16 Feb 2010 17:33:16 +0000 (19:33 +0200)
modules/gui/qt4/components/playlist/standardpanel.cpp

index 0d76a5a6b51d6218ef3d67d37c1e274f45558e63..4ceeaeba22a2fcd2182b4ef776b054136f543cef 100644 (file)
@@ -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& ),