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 60891e9..61bfcac 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 )