switching modal loop implementation, fixes #11921

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2010-04-08 09:45:59 +00:00
parent 0a492dbe7a
commit d0332cbc07

View File

@ -191,17 +191,9 @@ int RunMixedFontDialog(wxFontDialog* dialog)
else
[[NSColorPanel sharedColorPanel] setColor:[NSColor blackColor]];
#endif
NSModalSession session = [NSApp beginModalSessionForWindow:fontPanel];
for (;;)
{
if ([NSApp runModalSession:session] != NSRunContinuesResponse)
break;
}
[NSApp endModalSession:session];
[NSApp runModalForWindow:fontPanel];
// if we don't reenable it, FPShowHideFontPanel does not work
[[fontPanel standardWindowButton:NSWindowCloseButton] setEnabled:YES] ;
#if wxOSX_USE_CARBON