Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 2767012: [Mac] Don't disable all menu items if there isn't a browser window open. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 84207622f81a824182d99d4384bd61a574ef678d..4fa46b6161bef32a50bb3c5197489e822a3e40f3 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -580,7 +580,7 @@ void RecordLastRunAppBundlePath() {
// dialogs that are window modal will block the browser.
- (BOOL)keyWindowIsNotModal {
Browser* browser = BrowserList::GetLastActive();
- return [NSApp modalWindow] == nil && (browser &&
+ return [NSApp modalWindow] == nil && (!browser ||
![[browser->window()->GetNativeHandle() attachedSheet]
isKindOfClass:[NSWindow class]]);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698