Commit 7bb77548 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: refuse file drops on the playlist table if the current root item is...

macosx: refuse file drops on the playlist table if the current root item is neither the local playlist nor the media library
parent c789f858
......@@ -1573,7 +1573,7 @@
if ([self currentPlaylistRoot] == p_playlist->p_local_category || [self currentPlaylistRoot] == p_playlist->p_ml_category)
p_new_parent = [self currentPlaylistRoot];
else
p_new_parent = p_playlist->p_local_category;
return NO;
}
else
p_new_parent = [item pointerValue];
......@@ -1649,6 +1649,9 @@
else if( [[o_pasteboard types] containsObject: NSFilenamesPboardType] )
{
if ([self currentPlaylistRoot] != p_playlist->p_local_category && [self currentPlaylistRoot] != p_playlist->p_ml_category)
return NO;
playlist_item_t *p_node = [item pointerValue];
NSArray *o_values = [[o_pasteboard propertyListForType: NSFilenamesPboardType]
......
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