X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37e48466974d34efab092f2429fe3987a995ceed..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/osx/cocoa/msgdlg.mm diff --git a/src/osx/cocoa/msgdlg.mm b/src/osx/cocoa/msgdlg.mm index 73075caaa7..9e4ab729f1 100644 --- a/src/osx/cocoa/msgdlg.mm +++ b/src/osx/cocoa/msgdlg.mm @@ -20,6 +20,7 @@ #include "wx/control.h" #include "wx/thread.h" +#include "wx/evtloop.h" #include "wx/osx/private.h" @@ -61,6 +62,8 @@ wxMessageDialog::~wxMessageDialog() int wxMessageDialog::ShowModal() { + wxCFEventLoopPauseIdleEvents pause; + int resultbutton = wxID_CANCEL; const long style = GetMessageDialogStyle();