]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dialog.cpp
use const for xpm icons
[wxWidgets.git] / src / mac / carbon / dialog.cpp
index 7c984cea0c10d8044631223b9fc946145892b80e..2a127e76319c5a884278d7f9461894cb98fb2573 100644 (file)
@@ -139,7 +139,7 @@ extern bool s_macIsInModalLoop ;
 
 void wxDialog::DoShowModal()
 {
 
 void wxDialog::DoShowModal()
 {
-    wxCHECK_RET( !IsModalShowing(), wxT("DoShowModal() called twice") );
+    wxCHECK_RET( !IsModal(), wxT("DoShowModal() called twice") );
 
     wxModalDialogs.Append(this);
 
 
     wxModalDialogs.Append(this);
 
@@ -153,7 +153,7 @@ void wxDialog::DoShowModal()
     s_macIsInModalLoop = true ;
 #endif
 
     s_macIsInModalLoop = true ;
 #endif
 
-    while ( IsModalShowing() )
+    while ( IsModal() )
     {
         wxTheApp->MacDoOneEvent() ;
         // calls process idle itself
     {
         wxTheApp->MacDoOneEvent() ;
         // calls process idle itself