summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam <lshanmug@in.ibm.com>2012-04-12 12:13:25 +0530
committerLakshmi Shanmugam <lshanmug@in.ibm.com>2012-04-12 12:13:25 +0530
commit8614680ae78fee56d42eb3d94f28a75f18d340b5 (patch)
tree30e07ead9d19abfbfe6dc569933bfe2fe891db77
parent6963ed3a258a6ff0340b58bb6d2d95018a4cf1c1 (diff)
downloadeclipse.platform.swt-8614680ae78fee56d42eb3d94f28a75f18d340b5.tar.gz
eclipse.platform.swt-8614680ae78fee56d42eb3d94f28a75f18d340b5.tar.xz
eclipse.platform.swt-8614680ae78fee56d42eb3d94f28a75f18d340b5.zip
Bug 373467 - Default Mac OS X Search feature in Help Menu
not working correctly
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
index 0c8e07ee89..aaa56decf5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
@@ -1964,11 +1964,7 @@ public Menu getMenuBar () {
checkDevice ();
if (appMenuBar != null) return appMenuBar;
appMenuBar = new Menu (this);
-
- // If there is an active menu bar don't replace it.
- // It will be updated when the next Shell without a menu bar activates.
- if (menuBar == null) setMenuBar(appMenuBar);
-
+ // the menubar will be updated when the Shell or the application activates.
return appMenuBar;
}
@@ -4845,6 +4841,8 @@ void applicationDidBecomeActive (int /*long*/ id, int /*long*/ sel, int /*long*/
NSWindow keyWindow = application.keyWindow();
if (keyWindow != null) {
keyWindow.orderFrontRegardless();
+ } else {
+ setMenuBar (menuBar);
}
checkFocus();
checkEnterExit(findControl(true), null, false);