]> git.sesse.net Git - vlc/commitdiff
Qt4: make sure Item can be scrolled to visible even in treeview
authorIlkka Ollakka <ileoo@videolan.org>
Fri, 18 Jun 2010 13:25:02 +0000 (16:25 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Fri, 18 Jun 2010 13:25:02 +0000 (16:25 +0300)
Change visible-root to currents parent so it's visible. Not sure if
it's best way to do it, but atleast you don't get lost why isn't current
item visible on playlist in tree-mode.

modules/gui/qt4/components/playlist/standardpanel.cpp

index 45b9938fc2a584b6ba19a2aad9d7267bcd3c562b..fad33cbfff67db2b424c3bbae3ab7b8d8f85f2b7 100644 (file)
@@ -159,6 +159,7 @@ void StandardPLPanel::gotoPlayingItem()
 void StandardPLPanel::handleExpansion( const QModelIndex& index )
 {
     assert( currentView );
+    browseInto( index.parent() );
     currentView->scrollTo( index );
 }