X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/643e9cf9f61fdbe517b15477f9247ca8ac0b3578..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/common/dlgcmn.cpp diff --git a/src/common/dlgcmn.cpp b/src/common/dlgcmn.cpp index 9289aa2d58..4c52be1cee 100644 --- a/src/common/dlgcmn.cpp +++ b/src/common/dlgcmn.cpp @@ -43,7 +43,7 @@ #include "wx/bookctrl.h" #include "wx/scrolwin.h" #include "wx/textwrapper.h" -#include "wx/testing.h" +#include "wx/modalhook.h" #if wxUSE_DISPLAY #include "wx/display.h" @@ -51,8 +51,6 @@ extern WXDLLEXPORT_DATA(const char) wxDialogNameStr[] = "dialog"; -wxModalDialogHook *wxModalDialogHook::ms_instance = NULL; - // ---------------------------------------------------------------------------- // XTI // ---------------------------------------------------------------------------- @@ -425,7 +423,7 @@ bool wxDialogBase::EmulateButtonClickIfPresent(int id) if ( !btn || !btn->IsEnabled() || !btn->IsShown() ) return false; - wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, id); + wxCommandEvent event(wxEVT_BUTTON, id); event.SetEventObject(btn); btn->GetEventHandler()->ProcessEvent(event);