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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user