7149085: [macosx] Quit with QuitStrategy CLOSE_ALL_WINDOWS does terminate application

Don't force the termination of the event loop in the Quit action handler

Reviewed-by: art
This commit is contained in:
Anthony Petrov 2012-03-27 15:49:17 +04:00
parent f1484f0cd4
commit b6cab6070f

View File

@ -157,7 +157,10 @@ class _AppEventHandler {
}
});
} finally {
nativeReplyToAppShouldTerminate(true);
// Either we've just called System.exit(), or the app will call
// it when processing a WINDOW_CLOSING event. Either way, we reply
// to Cocoa that we don't want to exit the event loop yet.
nativeReplyToAppShouldTerminate(false);
}
}