Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Fixed crash on quit.
Browse files Browse the repository at this point in the history
  • Loading branch information
gruehle committed Feb 14, 2013
1 parent 0e79776 commit a30f0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appshell/cefclient_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ -(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theAppli
}

- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)theApplication {
if (!g_isTerminating && g_handler.get() && !g_handler->AppIsQuitting() && g_handler->HasWindows()) {
if (!g_isTerminating && g_handler.get() && !g_handler->AppIsQuitting() && g_handler->HasWindows() && [NSApp keyWindow]) {
g_handler->DispatchCloseToNextBrowser();
return NSTerminateCancel;
}
Expand Down

0 comments on commit a30f0fc

Please sign in to comment.