Commit 98ed5329 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fix crash when re-ordering playlist items

(cherry picked from commit a0442893663ac58aa5b5e8cb098951a0aa499878)

Conflicts:
	modules/gui/macosx/playlist.m
parent f755a255
......@@ -1544,8 +1544,10 @@
NSPasteboard *o_pasteboard = [info draggingPasteboard];
/* Drag & Drop inside the playlist */
if( [[o_pasteboard types] containsObject: @"VLCPlaylistItemPboardType"] )
{
if ([[o_pasteboard types] containsObject: @"VLCPlaylistItemPboardType"]) {
if (index == -1) // this is no valid target, sanitize to top of table
index = 0;
int i_row = 0;
playlist_item_t *p_new_parent, *p_item = NULL;
NSArray *o_all_items = [o_nodes_array arrayByAddingObjectsFromArray: o_items_array];
......
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