X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ccc5735bfb404f46639d417c613ff77f413c612..140f2027267dde85ee78eb4377fe0c40db66d251:/src/osx/dialog_osx.cpp 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);