X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94e0018723919fe2ca2f5b5f0a42804c16dbf3a1..5edaa5ebb0b01f063a9df87236e8365d7c3886f4:/src/generic/msgdlgg.cpp diff --git a/src/generic/msgdlgg.cpp b/src/generic/msgdlgg.cpp index c3dd7a8067..b2d162d31a 100644 --- a/src/generic/msgdlgg.cpp +++ b/src/generic/msgdlgg.cpp @@ -39,6 +39,7 @@ #include "wx/msgdlg.h" #include "wx/artprov.h" #include "wx/textwrapper.h" +#include "wx/testing.h" #if wxUSE_STATLINE #include "wx/statline.h" @@ -268,6 +269,8 @@ void wxGenericMessageDialog::OnCancel(wxCommandEvent& WXUNUSED(event)) int wxGenericMessageDialog::ShowModal() { + WX_TESTING_SHOW_MODAL_HOOK(); + if ( !m_created ) { m_created = true;