]> git.saurik.com Git - wxWidgets.git/commitdiff
using suppression of idle processing (delayed destruction happened too early eg when...
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 15 Jun 2012 00:04:50 +0000 (00:04 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 15 Jun 2012 00:04:50 +0000 (00:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/msgdlg.mm

index 73075caaa7d06a9b8b6d0e2b3336a4c90b348158..82a5c4b907513b36aa504650294840a10f348eaa 100644 (file)
@@ -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();