X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12bba77343654dc309a69ca2bcb5e0041c658395..72a0a2de1eaac771fa02c606c541ef87f625d11e:/src/univ/dialog.cpp diff --git a/src/univ/dialog.cpp b/src/univ/dialog.cpp index 0f5e47b9a4..40b3f7efe8 100644 --- a/src/univ/dialog.cpp +++ b/src/univ/dialog.cpp @@ -14,7 +14,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "univdialog.h" #endif @@ -166,11 +166,6 @@ bool wxDialog::IsModal() const return m_isShowingModal; } -void wxDialog::SetModal(bool WXUNUSED(flag)) -{ - wxFAIL_MSG( wxT("wxDialog:SetModal obsolete now") ); -} - int wxDialog::ShowModal() { if ( IsModal() ) @@ -196,6 +191,11 @@ int wxDialog::ShowModal() wxASSERT_MSG( !m_windowDisabler, _T("disabling windows twice?") ); +#if defined(__WXGTK__) || defined(__WXMGL__) + wxBusyCursorSuspender suspender; + // FIXME (FIXME_MGL) - make sure busy cursor disappears under MSW too +#endif + m_windowDisabler = new wxWindowDisabler(this); if ( !m_eventLoop ) m_eventLoop = new wxEventLoop;