X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9efc294a979fb4ae801f7dc37af35677301212d..4566dcbe24d452b729b0bad3f72ad63e6a60037c:/src/motif/dialog.cpp?ds=inline diff --git a/src/motif/dialog.cpp b/src/motif/dialog.cpp index 3955a68d45..347e11354c 100644 --- a/src/motif/dialog.cpp +++ b/src/motif/dialog.cpp @@ -181,7 +181,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);