From: Pierre d'Herbemont Date: Sat, 12 May 2007 17:57:10 +0000 (+0000) Subject: Mac OS X gui: Prevent a crash when dropping item on the playlist. X-Git-Tag: 0.9.0-test0~7463 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2e0eb5c74b941f18521726572abf74bebc8f59bb;p=vlc Mac OS X gui: Prevent a crash when dropping item on the playlist. --- 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. */