X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d3b8623ad934c1250b77464e7be599ba54447d3..a51e79e87db3512823258d487849bb7e7947b700:/src/osx/cocoa/msgdlg.mm?ds=sidebyside diff --git a/src/osx/cocoa/msgdlg.mm b/src/osx/cocoa/msgdlg.mm index 189d0166b3..8218fc7e87 100644 --- a/src/osx/cocoa/msgdlg.mm +++ b/src/osx/cocoa/msgdlg.mm @@ -18,7 +18,10 @@ #include "wx/app.h" #endif +#include "wx/control.h" #include "wx/thread.h" +#include "wx/evtloop.h" +#include "wx/testing.h" #include "wx/osx/private.h" @@ -60,6 +63,10 @@ wxMessageDialog::~wxMessageDialog() int wxMessageDialog::ShowModal() { + WX_TESTING_SHOW_MODAL_HOOK(); + + wxCFEventLoopPauseIdleEvents pause; + int resultbutton = wxID_CANCEL; const long style = GetMessageDialogStyle();