diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-06 21:00:13 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-06 21:01:42 +0200 |
| commit | 0b5f92d1c76b5b3e7f309c0f33483d5c313a259a (patch) | |
| tree | eb1cf30c81e743f667d73320b24351fdc9ca18e9 /src/Fl_Native_File_Chooser_MAC.mm | |
| parent | f09e17c3c564e8310125a10c03397cbf473ff643 (diff) | |
Improve control of sheet containing file dialog window.
Diffstat (limited to 'src/Fl_Native_File_Chooser_MAC.mm')
| -rw-r--r-- | src/Fl_Native_File_Chooser_MAC.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm index 14dff14ae..0f6191d23 100644 --- a/src/Fl_Native_File_Chooser_MAC.mm +++ b/src/Fl_Native_File_Chooser_MAC.mm @@ -626,7 +626,7 @@ int Fl_Quartz_Native_File_Chooser_Driver::runmodal() [_panel beginSheetModalForWindow:[NSApp mainWindow] completionHandler:^(NSInteger returnCode) { complete = returnCode; // this block runs after OK or Cancel was triggered in file dialog }]; // this message returns immediately and begins the file dialog as a sheet - while (complete < 0) Fl::wait(100); // loop until end of file dialog + while ([_panel isVisible]) Fl::wait(100); // loop until end of file dialog retval = complete; } else |
