Commit 952ca023 authored by Erwan Tulou's avatar Erwan Tulou

skins2: playlist (cosmetic)

parent e14ddb14
......@@ -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 );
}
......
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