diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-19 13:09:26 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-19 13:09:26 -0400 |
| commit | e5759d80de62958b24d5fe18c7e8b2d4a8241cc0 (patch) | |
| tree | 6687da045b9dfe3480bffea50a35b69723227f91 /redo/dialog_darwin.m | |
| parent | a19832d35ee37e23d6db45fee73d190bb74d4c27 (diff) | |
Fixed modality issues on Mac OS X.
Diffstat (limited to 'redo/dialog_darwin.m')
| -rw-r--r-- | redo/dialog_darwin.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/redo/dialog_darwin.m b/redo/dialog_darwin.m index 3e662be..0557018 100644 --- a/redo/dialog_darwin.m +++ b/redo/dialog_darwin.m @@ -18,11 +18,9 @@ char *openFile(void) [op setExtensionHidden:NO]; [op setAllowsOtherFileTypes:YES]; [op setTreatsFilePackagesAsDirectories:YES]; - // disable custom events - // TODO doesn't seem to work - dispatch_suspend(dispatch_get_main_queue()); + beginModal(); ret = [op runModal]; - dispatch_resume(dispatch_get_main_queue()); + endModal(); if (ret != NSFileHandlingPanelOKButton) return NULL; // string freed on the Go side |
