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 7a28f1931d3e19b7a7094fb8ec48a8bf98847875)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5cf9fd70
......@@ -394,6 +394,12 @@ void StandardPLPanel::showView( int i_view )
{
treeView->header()->restoreState(getSettings()
->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
{
......
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