changeset 6480:fd61fcc1a5a9

8007006: [macosx] Closing subwindow loses main window menus Reviewed-by: anthony
author leonidr
date Thu, 31 Jan 2013 18:25:59 +0400
parents ac286bf65242
children 452deb976c92
files src/macosx/native/sun/awt/AWTWindow.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/native/sun/awt/AWTWindow.m	Wed Jan 30 10:18:33 2013 -0800
+++ b/src/macosx/native/sun/awt/AWTWindow.m	Thu Jan 31 18:25:59 2013 +0400
@@ -813,9 +813,9 @@
         if ([nsWindow isKeyWindow]) [window.javaMenuBar deactivate];
         window.javaMenuBar = menuBar;
 
-        // if ([self isKeyWindow]) {
-        [CMenuBar activate:window.javaMenuBar modallyDisabled:NO];
-        // }
+        if ([nsWindow isKeyWindow]) {
+            [CMenuBar activate:window.javaMenuBar modallyDisabled:NO];
+        }
     }];
 
 JNF_COCOA_EXIT(env);