Commit 5397b8f3 authored by Antoine Cellerier's avatar Antoine Cellerier

ctrl_tree.cpp: fix selection bug (when pressing KEY_DOWN if the selected item...

ctrl_tree.cpp: fix selection bug (when pressing KEY_DOWN if the selected item was the last visible tree item)
playtree.hpp: cosmetics
parent 5983a042
...@@ -329,6 +329,13 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent ) ...@@ -329,6 +329,13 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent )
{ {
previousWasSelected = ( &*it == m_pLastSelected ); 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 ) else if( key == KEY_RIGHT )
{ {
......
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