Commit 28b4ac7c 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.
parent 30d04776
......@@ -61,8 +61,6 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
/* Create and configure the QTreeView */
view = new QVLCTreeView;
view->header()->setSortIndicator( 0 , Qt::AscendingOrder );
view->setSortingEnabled( true );
view->setModel( model );
view->setIconSize( QSize( 20, 20 ) );
view->setAlternatingRowColors( true );
......@@ -72,6 +70,8 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
view->setDragEnabled( true );
view->setAcceptDrops( true );
view->setDropIndicatorShown( true );
view->header()->setSortIndicator( -1 , Qt::AscendingOrder );
view->setSortingEnabled( true );
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