Commit 6141b54e authored by Erwan Tulou's avatar Erwan Tulou

skins2: playlist (simplify)

getNextSibling was buggy (previous patch), and the only use doesn't seem right.
parent c6c9ea7e
...@@ -73,18 +73,15 @@ void Playtree::delSelected() ...@@ -73,18 +73,15 @@ void Playtree::delSelected()
{ {
playlist_DeleteFromInput( getIntf()->p_sys->p_playlist, playlist_DeleteFromInput( getIntf()->p_sys->p_playlist,
p_item->p_input, pl_Locked ); p_item->p_input, pl_Locked );
it2 = getNextVisibleItem( it ) ;
it->parent()->removeChild( it );
it = it2;
} }
else else
{ {
playlist_NodeDelete( getIntf()->p_sys->p_playlist, p_item, playlist_NodeDelete( getIntf()->p_sys->p_playlist, p_item,
true, false ); true, false );
it2 = getNextSibling( it );
it->parent()->removeChild( it );
it = it2;
} }
it2 = getNextVisibleItem( it ) ;
it->parent()->removeChild( it );
it = it2;
} }
else else
{ {
......
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