X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/89424d9b35a32b6c450380d22dbb34268947644c..c084a1ac064cff672b777e1e6a3624fd838387e7:/src/msw/dialog.cpp diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 6dc0d62e04..55bd004088 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -192,8 +192,6 @@ bool wxDialog::Create(wxWindow *parent, wxDialog::~wxDialog() { - m_isBeingDeleted = true; - // this will also reenable all the other windows for a modal dialog Show(false); @@ -284,7 +282,7 @@ int wxDialog::ShowModal() // EndModal may have been called from InitDialog handler (called from // inside Show()) and hidden the dialog back again - if ( !IsShown() ) + if ( IsShown() ) { // enter and run the modal loop wxDialogModalDataTiedPtr modalData(&m_modalData,