diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-03-23 14:38:20 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-03-23 14:38:20 +0100 |
| commit | e8d7eb1e4619a16e196851dfb7f2f4f2cde59e8d (patch) | |
| tree | c4851252c39bd41a47e2b7cb21919cd1ceeb1416 /src | |
| parent | f89593d0de0e3114b6dd401165f47549b9fd87be (diff) | |
Invalidate Quit also when running native file chooser.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 77a326a7c..2b2cf23fc 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3890,7 +3890,8 @@ int Fl_Cocoa_Window_Driver::set_cursor(const Fl_RGB_Image *image, int hotx, int @end @implementation FLaboutItemTarget - (BOOL)validateMenuItem:(NSMenuItem *)item -{ // invalidate the Quit item of the application menu when running modal +{ // invalidate the Quit item of the application menu when running modal or when in native file chooser + if ([[NSApp keyWindow] isKindOfClass:[NSSavePanel class]]) return NO; if (!Fl::modal() || [item action] != @selector(terminate:)) return YES; return NO; } |
