Commit 58052ea4 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: work-around a crash when deleting an entire playlist root

parent 9db8e1cb
......@@ -936,6 +936,17 @@
p_playlist = pl_Get( p_intf );
NSUInteger indexes[i_count];
if (i_count == [o_outline_view numberOfRows])
{
#ifndef NDEBUG
msg_Dbg( p_intf, "user selected entire list, deleting current playlist root instead of individual items" );
#endif
PL_LOCK;
playlist_NodeDelete( p_playlist, [self currentPlaylistRoot], true, false );
PL_UNLOCK;
[self playlistUpdated];
return;
}
[o_selected_indexes getIndexes:indexes maxCount:i_count inIndexRange:nil];
for (int i = 0; i < i_count; i++)
{
......
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