mirror of https://code.videolan.org/videolan/vlc
ctrl_tree.cpp: fix selection bug (when pressing KEY_DOWN if the selected item was the last visible tree item)
playtree.hpp: cosmetics
This commit is contained in:
parent
5983a04266
commit
5397b8f3ea
|
@ -329,6 +329,13 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent )
|
|||
{
|
||||
previousWasSelected = ( &*it == m_pLastSelected );
|
||||
}
|
||||
|
||||
// Fix last tree item selection
|
||||
if( m_rTree.getNextVisibleItem( it ) == m_rTree.end()
|
||||
&& &*it == m_pLastSelected )
|
||||
{
|
||||
(*it).m_selected = true;
|
||||
}
|
||||
}
|
||||
else if( key == KEY_RIGHT )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue