diff --git a/src/mac/carbon/fontdlgosx.mm b/src/mac/carbon/fontdlgosx.mm index d863f75689..65c6dfff99 100644 --- a/src/mac/carbon/fontdlgosx.mm +++ b/src/mac/carbon/fontdlgosx.mm @@ -169,7 +169,11 @@ int RunMixedFontDialog(wxFontDialog* dialog) NSModalSession session = [NSApp beginModalSessionForWindow:fontPanel]; - [NSApp runModalSession:session]; + for (;;) + { + if ([NSApp runModalSession:session] != NSRunContinuesResponse) + break; + } [NSApp endModalSession:session];