X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af7e08a4a5fe415c5792ee14278736b96b951a53..abc2a4ccec3d06d4b268d5ac3c97d657721f5cff:/src/mac/carbon/taskbar.cpp diff --git a/src/mac/carbon/taskbar.cpp b/src/mac/carbon/taskbar.cpp index 395f5f5e30..62b912bbe8 100644 --- a/src/mac/carbon/taskbar.cpp +++ b/src/mac/carbon/taskbar.cpp @@ -36,7 +36,12 @@ pascal OSStatus wxDockEventHandler( EventHandlerCallRef inHandlerCallRef, { //TODO: This is a complete copy of //static pascal OSStatus wxMacAppCommandEventHandler( EventHandlerCallRef handler , EventRef event , void *data ) - + + if (! pTB->GetCurrentMenu() ) + { + return eventNotHandledErr; + } + MenuRef hMenu = MAC_WXHMENU(pTB->GetCurrentMenu()->GetHMenu()); OSStatus result = eventNotHandledErr ;