vlc | branch: master | Erwan Tulou <[email protected]> | 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 );
 }
 
 

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to