From ffbee8108ffdf1309b8a0e840f4958aa429f03f4 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 15 Jun 2012 00:04:50 +0000 Subject: [PATCH] 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 --- src/osx/cocoa/msgdlg.mm | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.50.0