Commit 2e0eb5c7 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

Mac OS X gui: Prevent a crash when dropping item on the playlist.

parent a4b948f0
......@@ -1474,6 +1474,13 @@
}
}
/* Don't allow on drop on playlist root element's child */
if( !item && index != NSOutlineViewDropOnItemIndex)
{
vlc_object_release( p_playlist );
return NSDragOperationNone;
}
/* We refuse to drop an item in anything else than a child of the General
Node. We still accept items that would be root nodes of the outlineview
however, to allow drop in an empty playlist. */
......
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