mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-1541: activate menu in completion handler of modal dialog
(cherry picked from commit e57384c1d6)
This commit is contained in:
committed by
Vitaly Provodin
parent
aa9325096f
commit
6387eb8a28
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user