Commit a3cc30ca authored by Ilkka Ollakka's avatar Ilkka Ollakka

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

parent 477c04bc
...@@ -312,6 +312,7 @@ void StandardPLPanel::createTreeView() ...@@ -312,6 +312,7 @@ void StandardPLPanel::createTreeView()
/* setModel after setSortingEnabled(true), or the model will sort immediately! */ /* setModel after setSortingEnabled(true), or the model will sort immediately! */
treeView->setModel( model ); treeView->setModel( model );
getSettings()->beginGroup("Playlist");
if( getSettings()->contains( "headerStateV2" ) ) if( getSettings()->contains( "headerStateV2" ) )
{ {
treeView->header()->restoreState( treeView->header()->restoreState(
...@@ -326,6 +327,7 @@ void StandardPLPanel::createTreeView() ...@@ -326,6 +327,7 @@ void StandardPLPanel::createTreeView()
else if( m == COLUMN_DURATION ) treeView->header()->resizeSection( c, 80 ); else if( m == COLUMN_DURATION ) treeView->header()->resizeSection( c, 80 );
} }
} }
getSettings()->endGroup();
/* Connections for the TreeView */ /* Connections for the TreeView */
CONNECT( treeView, activated( const QModelIndex& ), CONNECT( treeView, activated( const QModelIndex& ),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment