[vlc-commits] commit: skins2: playlist (cosmetic) (Erwan Tulou )
git at videolan.org
git at videolan.org
Tue Aug 10 11:34:07 CEST 2010
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu Aug 5 18:34:18 2010 +0200| [952ca023c8cb4f03cbf391382eb073d06e5df309] | committer: Erwan Tulou
skins2: playlist (cosmetic)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=952ca023c8cb4f03cbf391382eb073d06e5df309
---
modules/gui/skins2/controls/ctrl_tree.cpp | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/modules/gui/skins2/controls/ctrl_tree.cpp b/modules/gui/skins2/controls/ctrl_tree.cpp
index b8be9b4..4c1fff0 100644
--- a/modules/gui/skins2/controls/ctrl_tree.cpp
+++ b/modules/gui/skins2/controls/ctrl_tree.cpp
@@ -726,20 +726,19 @@ void CtrlTree::autoScroll()
break;
}
}
+
for( it = m_flat ? m_rTree.firstLeaf() : m_rTree.begin();
it != m_rTree.end();
it = m_flat ? m_rTree.getNextLeaf( it )
: m_rTree.getNextVisibleItem( it ) )
{
if( it->m_playing )
+ {
+ ensureVisible( playIndex );
break;
+ }
playIndex++;
}
-
- if( it == m_rTree.end() ) return;
-
-
- ensureVisible( playIndex );
}
More information about the vlc-commits
mailing list