Commit 23f2edd6 authored by Jakob Leben's avatar Jakob Leben

Qt: simplify playlist item deletion

No need to do that check anymore.
parent 2dfe5574
......@@ -808,10 +808,7 @@ void PLModel::doDeleteItem( PLItem *item, QModelIndexList *fullList )
PL_UNLOCK;
return;
}
if( p_item->i_children == -1 )
playlist_DeleteFromInput( p_playlist, p_item->p_input, pl_Locked );
else
playlist_NodeDelete( p_playlist, p_item, true, false );
playlist_DeleteFromInput( p_playlist, p_item->p_input, pl_Locked );
PL_UNLOCK;
/* And finally, remove it from the tree */
......
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