X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffbee8108ffdf1309b8a0e840f4958aa429f03f4..ab67e8874db324fab5223cc8d5dff8a8de3e2b77:/src/osx/cocoa/msgdlg.mm diff --git a/src/osx/cocoa/msgdlg.mm b/src/osx/cocoa/msgdlg.mm index 82a5c4b907..8218fc7e87 100644 --- a/src/osx/cocoa/msgdlg.mm +++ b/src/osx/cocoa/msgdlg.mm @@ -21,6 +21,7 @@ #include "wx/control.h" #include "wx/thread.h" #include "wx/evtloop.h" +#include "wx/testing.h" #include "wx/osx/private.h" @@ -62,7 +63,9 @@ wxMessageDialog::~wxMessageDialog() int wxMessageDialog::ShowModal() { - wxCFEventLoopPauseObservers pause; + WX_TESTING_SHOW_MODAL_HOOK(); + + wxCFEventLoopPauseIdleEvents pause; int resultbutton = wxID_CANCEL;