X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/289532452089421ddadbd4726a8469511a19ab76..6f58f3d7e0ed959dd6a568a70161ec14ec524feb:/src/univ/dialog.cpp diff --git a/src/univ/dialog.cpp b/src/univ/dialog.cpp index 9adf6a99b8..b698e2a678 100644 --- a/src/univ/dialog.cpp +++ b/src/univ/dialog.cpp @@ -29,6 +29,7 @@ #endif #include "wx/evtloop.h" +#include "wx/testing.h" //----------------------------------------------------------------------------- // wxDialog @@ -165,6 +166,8 @@ bool wxDialog::IsModal() const int wxDialog::ShowModal() { + WX_TESTING_SHOW_MODAL_HOOK(); + if ( IsModal() ) { wxFAIL_MSG( wxT("wxDialog:ShowModal called twice") ); @@ -185,9 +188,8 @@ int wxDialog::ShowModal() wxASSERT_MSG( !m_windowDisabler, wxT("disabling windows twice?") ); -#if defined(__WXGTK__) || defined(__WXMGL__) +#if defined(__WXGTK__) wxBusyCursorSuspender suspender; - // FIXME (FIXME_MGL) - make sure busy cursor disappears under MSW too #endif m_windowDisabler = new wxWindowDisabler(this);