From 2e0eb5c74b941f18521726572abf74bebc8f59bb Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sat, 12 May 2007 17:57:10 +0000 Subject: [PATCH] Mac OS X gui: Prevent a crash when dropping item on the playlist. --- modules/gui/macosx/playlist.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 0d0b5450d6..f256212846 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -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. */ -- 2.39.5