Commit 7bd74180 authored by Clément Stenac's avatar Clément Stenac

Also delete nodes when deleting selection

parent e89b2807
......@@ -1029,7 +1029,10 @@ void Playlist::RecursiveDeleteSelection( wxTreeItemId root )
while( child.IsOk() )
{
if( treectrl->ItemHasChildren( child ) )
{
RecursiveDeleteSelection( child );
if( treectrl->IsSelected(child ) ) DeleteTreeItem( child );
}
else if( treectrl->IsSelected( child ) )
DeleteTreeItem( child );
child = treectrl->GetNextChild( root, cookie );
......
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