]> git.sesse.net Git - vlc/commitdiff
qt4 playlist selector: selects the playlist on start
authorRafaël Carré <funman@videolan.org>
Tue, 15 Jan 2008 10:39:36 +0000 (10:39 +0000)
committerRafaël Carré <funman@videolan.org>
Tue, 15 Jan 2008 10:39:36 +0000 (10:39 +0000)
modules/gui/qt4/components/playlist/selector.cpp

index 60891e9421d7257a4ffe3dec76c56a560a78d546..61bfcac497387081dbc669c1aa9904a1d4757d62 100644 (file)
@@ -50,6 +50,8 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf,
     layout->setSpacing( 0 ); layout->setMargin( 0 );
     layout->addWidget( view );
     setLayout( layout );
+    /* select the first item */
+    view->setCurrentIndex( model->index( 0, 0, QModelIndex() ) );
 }
 
 void PLSelector::setSource( const QModelIndex &index )