X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffbee8108ffdf1309b8a0e840f4958aa429f03f4..7c60222510bc5e197b12f153c4bf05db66cb0f4a:/src/osx/cocoa/msgdlg.mm diff --git a/src/osx/cocoa/msgdlg.mm b/src/osx/cocoa/msgdlg.mm index 82a5c4b907..40ed938450 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/modalhook.h" #include "wx/osx/private.h" @@ -62,7 +63,9 @@ wxMessageDialog::~wxMessageDialog() int wxMessageDialog::ShowModal() { - wxCFEventLoopPauseObservers pause; + WX_HOOK_MODAL_DIALOG(); + + wxCFEventLoopPauseIdleEvents pause; int resultbutton = wxID_CANCEL;