]> git.saurik.com Git - wxWidgets.git/commitdiff
switching modal loop implementation, fixes #11921
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 8 Apr 2010 09:45:59 +0000 (09:45 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 8 Apr 2010 09:45:59 +0000 (09:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/fontdlgosx.mm

index c9f6b041bb927c9ca8266179f200c91d65a9acf0..9f8470c9d7d35f0a646d81adf2a0d4512784bcd8 100644 (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