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
|
else
|
||||||
[[NSColorPanel sharedColorPanel] setColor:[NSColor blackColor]];
|
[[NSColorPanel sharedColorPanel] setColor:[NSColor blackColor]];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NSModalSession session = [NSApp beginModalSessionForWindow:fontPanel];
|
[NSApp runModalForWindow:fontPanel];
|
||||||
|
|
||||||
for (;;)
|
|
||||||
{
|
|
||||||
if ([NSApp runModalSession:session] != NSRunContinuesResponse)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
[NSApp endModalSession:session];
|
|
||||||
|
|
||||||
// if we don't reenable it, FPShowHideFontPanel does not work
|
// if we don't reenable it, FPShowHideFontPanel does not work
|
||||||
[[fontPanel standardWindowButton:NSWindowCloseButton] setEnabled:YES] ;
|
[[fontPanel standardWindowButton:NSWindowCloseButton] setEnabled:YES] ;
|
||||||
#if wxOSX_USE_CARBON
|
#if wxOSX_USE_CARBON
|
||||||
|
Loading…
Reference in New Issue
Block a user