X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ccc5735bfb404f46639d417c613ff77f413c612..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/osx/dialog_osx.cpp?ds=sidebyside diff --git a/src/osx/dialog_osx.cpp b/src/osx/dialog_osx.cpp index fabbf00687..fbc3ce67e2 100644 --- a/src/osx/dialog_osx.cpp +++ b/src/osx/dialog_osx.cpp @@ -71,7 +71,7 @@ void wxDialog::SetModal( bool flag ) wxDialog::~wxDialog() { - m_isBeingDeleted = true; + SendDestroyEvent(); // if the dialog is modal, this will end its event loop Show(false);