X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e371ec7a3cbbd0ecaad1058350357337ba4b8ba8..35bb3cb155917b4287fb2a3841bea22919a3d499:/src/mac/carbon/dialog.cpp diff --git a/src/mac/carbon/dialog.cpp b/src/mac/carbon/dialog.cpp index 50cbb8c5ae..2a127e7631 100644 --- a/src/mac/carbon/dialog.cpp +++ b/src/mac/carbon/dialog.cpp @@ -106,11 +106,6 @@ bool wxDialog::IsModal() const } -bool wxDialog::IsModalShowing() const -{ - return wxModalDialogs.Find((wxDialog *)this) != NULL; // const_cast -} - bool wxDialog::Show(bool show) { if ( !wxDialogBase::Show(show) ) @@ -144,7 +139,7 @@ extern bool s_macIsInModalLoop ; void wxDialog::DoShowModal() { - wxCHECK_RET( !IsModalShowing(), wxT("DoShowModal() called twice") ); + wxCHECK_RET( !IsModal(), wxT("DoShowModal() called twice") ); wxModalDialogs.Append(this); @@ -158,7 +153,7 @@ void wxDialog::DoShowModal() s_macIsInModalLoop = true ; #endif - while ( IsModalShowing() ) + while ( IsModal() ) { wxTheApp->MacDoOneEvent() ; // calls process idle itself