From: Erwan Tulou Date: Thu, 5 Aug 2010 14:17:29 +0000 (+0200) Subject: skins2: playlist (simplify) X-Git-Tag: 1.2.0-pre1~5550 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6141b54e820e8d9bc5ac103d01cfb5a8f77da891;p=vlc skins2: playlist (simplify) getNextSibling was buggy (previous patch), and the only use doesn't seem right. --- diff --git a/modules/gui/skins2/vars/playtree.cpp b/modules/gui/skins2/vars/playtree.cpp index 2407e385cf..05cb89fb7a 100644 --- a/modules/gui/skins2/vars/playtree.cpp +++ b/modules/gui/skins2/vars/playtree.cpp @@ -73,18 +73,15 @@ 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 ); - it->parent()->removeChild( it ); - it = it2; } + it2 = getNextVisibleItem( it ) ; + it->parent()->removeChild( it ); + it = it2; } else {