Commit fa7a7049 authored by Ilkka Ollakka's avatar Ilkka Ollakka Committed by Jean-Baptiste Kempf

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

For example when starting with files, keep commanline order.
Fixes #5207
(cherry picked from commit 7a28f193)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5cf9fd70
...@@ -394,6 +394,12 @@ void StandardPLPanel::showView( int i_view ) ...@@ -394,6 +394,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