JBR-1541: activate menu in completion handler of modal dialog

(cherry picked from commit e57384c1d6)
(cherry picked from commit b38f01f5e4)
This commit is contained in:
Artem Bochkarev
2019-05-28 07:22:50 +03:00
committed by jbrbot
parent 0a6b347a83
commit b65b5a58c1

View File

@@ -29,6 +29,8 @@
#import "ThreadUtilities.h"
#import "JNIUtilities.h"
#import "CFileDialog.h"
#import "CMenuBar.h"
#import "ApplicationDelegate.h"
#import "java_awt_FileDialog.h"
#import "sun_lwawt_macosx_CFileDialog.h"
@@ -125,6 +127,8 @@ canChooseDirectories:(BOOL)inChooseDirectories
[thePanel setDelegate:self];
fPanelResult = [thePanel runModalForDirectory:fDirectory file:fFile];
[thePanel setDelegate:nil];
CMenuBar *menuBar = [[ApplicationDelegate sharedDelegate] defaultMenuBar];
[CMenuBar activate:menuBar modallyDisabled:NO];
if ([self userClickedOK]) {
if (fMode == java_awt_FileDialog_LOAD) {