X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3bb0d96f10db2c8e6d90ef08a81113e2fb2867eb..9914bfbb77f48baf869b63aff58feb2b145ff4d3:/src/osx/carbon/fontdlgosx.mm?ds=sidebyside diff --git a/src/osx/carbon/fontdlgosx.mm b/src/osx/carbon/fontdlgosx.mm index 7890a015d6..c9f6b041bb 100644 --- a/src/osx/carbon/fontdlgosx.mm +++ b/src/osx/carbon/fontdlgosx.mm @@ -194,12 +194,12 @@ int RunMixedFontDialog(wxFontDialog* dialog) NSModalSession session = [NSApp beginModalSessionForWindow:fontPanel]; - for (;;) + for (;;) { if ([NSApp runModalSession:session] != NSRunContinuesResponse) break; } - + [NSApp endModalSession:session]; // if we don't reenable it, FPShowHideFontPanel does not work