From a3cc30cad8aa3b5c435cd51c10eea39c2bad1114 Mon Sep 17 00:00:00 2001 From: Ilkka Ollakka Date: Sun, 14 Feb 2010 23:12:38 +0200 Subject: [PATCH] qt4: try to read playlist headers state in same group we write them --- modules/gui/qt4/components/playlist/standardpanel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp index 0d76a5a6b5..4ceeaeba22 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& ), -- 2.39.2