X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e1f8ea4a3c2764ec89d95f4edef40257e32ac5b..dfd0756f75c2a714e0c9d9c66c3ae1c17fca532c:/src/univ/dialog.cpp diff --git a/src/univ/dialog.cpp b/src/univ/dialog.cpp index c8b9e7aa7d..b698e2a678 100644 --- a/src/univ/dialog.cpp +++ b/src/univ/dialog.cpp @@ -29,6 +29,7 @@ #endif #include "wx/evtloop.h" +#include "wx/testing.h" //----------------------------------------------------------------------------- // wxDialog @@ -165,6 +166,8 @@ bool wxDialog::IsModal() const int wxDialog::ShowModal() { + WX_TESTING_SHOW_MODAL_HOOK(); + if ( IsModal() ) { wxFAIL_MSG( wxT("wxDialog:ShowModal called twice") );