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 )
{
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 )
{
......
......@@ -45,7 +45,7 @@ class Playtree: public VarTree
/// Function called to notify playlist item update
void onUpdateItem( int id );
/// Function called to notify playlist item append
/// Function called to notify playlist item append
void onAppend( playlist_add_t * );
/// Function called to notify playlist item delete
......
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