Commit d45df2a1 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: don't call browseInto if not needed when item changes

parent f7d274ea
......@@ -159,7 +159,8 @@ void StandardPLPanel::gotoPlayingItem()
void StandardPLPanel::handleExpansion( const QModelIndex& index )
{
assert( currentView );
browseInto( index.parent() );
if( currentRootIndexId != -1 && currentRootIndexId != model->itemId( index.parent() ) )
browseInto( index.parent() );
currentView->scrollTo( index );
}
......
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