Commit c1c34adf authored by Clément Stenac's avatar Clément Stenac

Fix tree selection

parent 98a42ae0
...@@ -403,10 +403,11 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent ) ...@@ -403,10 +403,11 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent )
else else
{ {
// Unselect any previously selected item // Unselect any previously selected item
for( it = m_rTree.begin(); it != m_rTree.end(); VarTree::Iterator it2;
it = m_rTree.getNextVisibleItem( it ) ) for( it2 = m_rTree.begin(); it2 != m_rTree.end();
it2 = m_rTree.getNextVisibleItem( it2 ) )
{ {
it->m_selected = false; it2->m_selected = false;
} }
// Select the new item // Select the new item
if( it != m_rTree.end() ) if( it != m_rTree.end() )
...@@ -427,7 +428,6 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent ) ...@@ -427,7 +428,6 @@ void CtrlTree::handleEvent( EvtGeneric &rEvent )
m_rTree.action( &*it ); m_rTree.action( &*it );
} }
} }
// Redraw the control // Redraw the control
makeImage(); makeImage();
notifyLayout(); notifyLayout();
......
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