X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21f4383ae7aa404e3d4ddb8f67d2705c54338e44..acf4d8587a07e4750fd6217c5a371f1d58194d89:/src/univ/dialog.cpp diff --git a/src/univ/dialog.cpp b/src/univ/dialog.cpp index dfb4a5b279..6b42e73d02 100644 --- a/src/univ/dialog.cpp +++ b/src/univ/dialog.cpp @@ -6,14 +6,32 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +// ============================================================================ +// declarations +// ============================================================================ + +// ---------------------------------------------------------------------------- +// headers +// ---------------------------------------------------------------------------- + #ifdef __GNUG__ -#pragma implementation "univdialog.h" + #pragma implementation "univdialog.h" +#endif + +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + +#ifndef WX_PRECOMP + #include "wx/dialog.h" + #include "wx/utils.h" + #include "wx/app.h" #endif -#include "wx/dialog.h" -#include "wx/utils.h" #include "wx/evtloop.h" -#include "wx/app.h" //----------------------------------------------------------------------------- // wxDialog @@ -172,14 +190,17 @@ int wxDialog::ShowModal() } } - wxBusyCursorSuspender cs; // temporarily suppress the busy cursor - Show(TRUE); m_isShowingModal = TRUE; 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;