]> git.sesse.net Git - vlc/commitdiff
QT4: Jump to current item on itemchange. Patch by Ilkka Ollakka.
authorPavlov Konstantin <thresh@videolan.org>
Wed, 11 Jul 2007 12:00:33 +0000 (12:00 +0000)
committerPavlov Konstantin <thresh@videolan.org>
Wed, 11 Jul 2007 12:00:33 +0000 (12:00 +0000)
modules/gui/qt4/components/playlist/standardpanel.cpp

index 1c3d93d02a26b7f13c4294d1eeaff4f320a43265..315b7cd83ed9c2fa292ead03fe89c18b08b834e8 100644 (file)
@@ -144,6 +144,7 @@ void StandardPLPanel::toggleRandom()
 void StandardPLPanel::handleExpansion( const QModelIndex &index )
 {
     QModelIndex parent;
+    view->scrollTo( index, QAbstractItemView::EnsureVisible );
     if( model->isCurrent( index ) )
     {
         parent = index;