Commit a0442893 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fix crash when re-ordering playlist items

parent a8612e7e
......@@ -1478,6 +1478,9 @@
/* Drag & Drop inside the playlist */
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