X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/289532452089421ddadbd4726a8469511a19ab76..88932ec82d048d006cdc81bd309f5e59aee799ac:/src/motif/dialog.cpp?ds=sidebyside diff --git a/src/motif/dialog.cpp b/src/motif/dialog.cpp index 9291ad72fb..a63aca7d3f 100644 --- a/src/motif/dialog.cpp +++ b/src/motif/dialog.cpp @@ -21,6 +21,7 @@ #endif #include "wx/evtloop.h" +#include "wx/testing.h" #ifdef __VMS__ #pragma message disable nosimpint @@ -288,6 +289,8 @@ bool wxDialog::Show( bool show ) // Shows a dialog modally, returning a return code int wxDialog::ShowModal() { + WX_TESTING_SHOW_MODAL_HOOK(); + Show(true); // after the event loop ran, the widget might already have been destroyed