Commit 9edc234f 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
(cherry picked from commit 7bb775484f81f6f848662103355089c191a960d1)
parent 0674820a
......@@ -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