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
This commit is contained in:
Stefan Csomor
2012-06-15 00:04:50 +00:00
parent 4c4cbded1f
commit ffbee8108f

View 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();