File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # wait loop not being broken
Original file line number Diff line number Diff line change @@ -241,16 +241,20 @@ - (OSErr)preDispatchAppleEvent: (const AppleEvent *)p_event withReply: (AppleEve
241241
242242 if (aeclass == kCoreEventClass && aeid == kAEAnswer )
243243 return MCAppleEventHandlerDoAEAnswer (p_event, p_reply, 0 );
244-
244+
245+ // SN-2014-10-13: [[ Bug 13644 ]] Break the wait loop after we handled the Apple Event
245246 OSErr t_err;
246247 t_err = MCAppleEventHandlerDoSpecial (p_event, p_reply, 0 );
247- if (t_err != errAEEventNotHandled)
248- return t_err;
248+ if (t_err == errAEEventNotHandled)
249+ {
250+ if (aeclass == kCoreEventClass && aeid == kAEOpenDocuments )
251+ t_err = MCAppleEventHandlerDoOpenDoc (p_event, p_reply, 0 );
252+ }
249253
250- if (aeclass == kCoreEventClass && aeid == kAEOpenDocuments )
251- return MCAppleEventHandlerDoOpenDoc (p_event, p_reply, 0 );
254+ if (t_err != errAEEventNotHandled )
255+ MCPlatformBreakWait ( );
252256
253- return errAEEventNotHandled ;
257+ return t_err ;
254258}
255259
256260- (void )applicationWillFinishLaunching : (NSNotification *)notification
You can’t perform that action at this time.
0 commit comments