From: Stefan Csomor Date: Fri, 15 Jun 2012 00:04:50 +0000 (+0000) Subject: using suppression of idle processing (delayed destruction happened too early eg when... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ffbee8108ffdf1309b8a0e840f4958aa429f03f4 using suppression of idle processing (delayed destruction happened too early eg when showing native message boxes) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/msgdlg.mm b/src/osx/cocoa/msgdlg.mm index 73075caaa7..82a5c4b907 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() { + wxCFEventLoopPauseObservers pause; + int resultbutton = wxID_CANCEL; const long style = GetMessageDialogStyle();