X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95e92d90496bd28a220de7314fd55f2915d04da3..cb0b7b7d811356f729315fc14c7e0d311f43384d:/src/msw/dialog.cpp?ds=sidebyside diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 1f57be36a8..ecac0fae54 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "dialog.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -147,7 +143,7 @@ private: wxModalEventLoop m_evtLoop; }; -wxDEFINE_TIED_SCOPED_PTR_TYPE(wxDialogModalData); +wxDEFINE_TIED_SCOPED_PTR_TYPE(wxDialogModalData) // ============================================================================ // implementation @@ -388,7 +384,7 @@ bool wxDialog::EmulateButtonClickIfPresent(int id) { wxButton *btn = wxDynamicCast(FindWindow(id), wxButton); - if ( !btn || !btn->IsEnabled() ) + if ( !btn || !btn->IsEnabled() || !btn->IsShown() ) return false; btn->MSWCommand(BN_CLICKED, 0 /* unused */);