Commit 962bd368 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: refactor saving panel view

parent e7c397eb
...@@ -94,14 +94,7 @@ StandardPLPanel::~StandardPLPanel() ...@@ -94,14 +94,7 @@ StandardPLPanel::~StandardPLPanel()
getSettings()->beginGroup("Playlist"); getSettings()->beginGroup("Playlist");
if( treeView ) if( treeView )
getSettings()->setValue( "headerStateV2", treeView->header()->saveState() ); getSettings()->setValue( "headerStateV2", treeView->header()->saveState() );
if( currentView == treeView ) getSettings()->setValue( "view-mode", currentViewIndex() );
getSettings()->setValue( "view-mode", TREE_VIEW );
else if( currentView == listView )
getSettings()->setValue( "view-mode", LIST_VIEW );
else if( currentView == iconView )
getSettings()->setValue( "view-mode", ICON_VIEW );
else if( currentView == picFlowView )
getSettings()->setValue( "view-mode", PICTUREFLOW_VIEW );
getSettings()->endGroup(); getSettings()->endGroup();
} }
......
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