[vlc-commits] commit: Qt4: don't call browseInto if not needed when item changes ( Ilkka Ollakka )
git at videolan.org
git at videolan.org
Sun Jun 20 12:34:01 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Jun 20 13:20:07 2010 +0300| [d45df2a136470a40257f0c3b13ff4becda55cbac] | committer: Ilkka Ollakka
Qt4: don't call browseInto if not needed when item changes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d45df2a136470a40257f0c3b13ff4becda55cbac
---
.../gui/qt4/components/playlist/standardpanel.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 37be40e..dc0db6a 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -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 );
}
More information about the vlc-commits
mailing list