Commit a2ecaa66 authored by Ilkka Ollakka's avatar Ilkka Ollakka

qt4: don't sort playlist by default take two

If you setSortingEnabled after setting model, it doesn't call sorting,
otherway around it does. Missed thatone on previous try.

(Cherry-picked from commit 28b4ac7c)
parent 86174f84
...@@ -62,7 +62,6 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -62,7 +62,6 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
/* Create and configure the QTreeView */ /* Create and configure the QTreeView */
view = new QVLCTreeView; view = new QVLCTreeView;
view->setModel( model ); view->setModel( model );
view->setIconSize( QSize( 20, 20 ) ); view->setIconSize( QSize( 20, 20 ) );
view->setAlternatingRowColors( true ); view->setAlternatingRowColors( true );
...@@ -72,6 +71,8 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -72,6 +71,8 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
view->setDragEnabled( true ); view->setDragEnabled( true );
view->setAcceptDrops( true ); view->setAcceptDrops( true );
view->setDropIndicatorShown( true ); view->setDropIndicatorShown( true );
view->header()->setSortIndicator( -1 , Qt::AscendingOrder );
view->setSortingEnabled( true );
getSettings()->beginGroup("Playlist"); getSettings()->beginGroup("Playlist");
......
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