Commit 851cd5d2 authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: don't remove non deleted items

parent 97aadbcc
......@@ -756,10 +756,11 @@ void PLModel::doDelete( QModelIndexList selected )
recurseDelete( item->children, &selected );
PL_LOCK;
playlist_DeleteFromInput( p_playlist, item->inputItem(), pl_Locked );
int i_ret = playlist_DeleteFromInput( p_playlist, item->inputItem(), pl_Locked );
PL_UNLOCK;
removeItem( item );
if( i_ret == VLC_SUCCESS )
removeItem( item );
}
}
......
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