Commit 7a28f193 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: don't sort listview of model allready has items

For example when starting with files, keep commanline order.
Fixes #5207
parent 7ba4686d
...@@ -392,6 +392,12 @@ void StandardPLPanel::showView( int i_view ) ...@@ -392,6 +392,12 @@ void StandardPLPanel::showView( int i_view )
{ {
treeView->header()->restoreState(getSettings() treeView->header()->restoreState(getSettings()
->value( "Playlist/headerStateV2" ).toByteArray() ); ->value( "Playlist/headerStateV2" ).toByteArray() );
/* if there is allready stuff in playlist, we don't sort it and we reset
sorting */
if( model->rowCount() )
{
treeView->header()->setSortIndicator( -1 , Qt::AscendingOrder );
}
} }
else else
{ {
......
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