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:
parent
0a492dbe7a
commit
d0332cbc07
@ -192,15 +192,7 @@ int RunMixedFontDialog(wxFontDialog* dialog)
|
||||
[[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] ;
|
||||
|
Loading…
Reference in New Issue
Block a user