allow vetoing on drop, see #10876
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e6b3143a29
commit
5646fba6b0
@ -826,7 +826,10 @@ bool wxWidgetCocoaImpl::performDragOperation(void* s, WXWidget WXUNUSED(slf), vo
|
||||
PasteboardRef pboardRef;
|
||||
PasteboardCreate((CFStringRef)[pboard name], &pboardRef);
|
||||
target->SetCurrentDragPasteboard(pboardRef);
|
||||
result = target->OnData(pt.x, pt.y, result);
|
||||
|
||||
if (target->OnDrop(pt.x, pt.y))
|
||||
result = target->OnData(pt.x, pt.y, result);
|
||||
|
||||
CFRelease(pboardRef);
|
||||
|
||||
return result != wxDragNone;
|
||||
|
Loading…
Reference in New Issue
Block a user