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,19 +73,16 @@ void Playtree::delSelected()
{
playlist_DeleteFromInput( getIntf()->p_sys->p_playlist,
p_item->p_input, pl_Locked );
it2 = getNextVisibleItem( it ) ;
it->parent()->removeChild( it );
it = it2;
}
else
{
playlist_NodeDelete( getIntf()->p_sys->p_playlist, p_item,
true, false );
it2 = getNextSibling( it );
}
it2 = getNextVisibleItem( it ) ;
it->parent()->removeChild( it );
it = it2;
}
}
else
{
it = getNextVisibleItem( it );
......
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