Commit fadb461f authored by Erwan Tulou's avatar Erwan Tulou

skins2: playlist, improve deletion of items

parent fb5480e4
...@@ -56,6 +56,7 @@ void Playtree::delSelected() ...@@ -56,6 +56,7 @@ void Playtree::delSelected()
if( (*it).m_selected && !(*it).isReadonly() ) if( (*it).m_selected && !(*it).isReadonly() )
{ {
(*it).m_deleted = true; (*it).m_deleted = true;
(*it).m_expanded = false;
} }
} }
/// \todo Do this better (handle item-deleted) /// \todo Do this better (handle item-deleted)
...@@ -79,13 +80,13 @@ void Playtree::delSelected() ...@@ -79,13 +80,13 @@ void Playtree::delSelected()
playlist_NodeDelete( getIntf()->p_sys->p_playlist, p_item, playlist_NodeDelete( getIntf()->p_sys->p_playlist, p_item,
true, false ); true, false );
} }
it2 = getNextVisibleItem( it ) ; it2 = getNextItem( it ) ;
it->parent()->removeChild( it ); it->parent()->removeChild( it );
it = it2; it = it2;
} }
else else
{ {
it = getNextVisibleItem( it ); it = getNextItem( it );
} }
} }
playlist_Unlock( getIntf()->p_sys->p_playlist ); playlist_Unlock( getIntf()->p_sys->p_playlist );
......
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