wxDialog::~wxDialog()
{
- m_isBeingDeleted = true;
+ SendDestroyEvent();
// if the dialog is modal, this will end its event loop
Show(false);
return GetReturnCode();
}
-// NB: this function (surprizingly) may be called for both modal and modeless
+// NB: this function (surprisingly) may be called for both modal and modeless
// dialogs and should work for both of them
void wxDialog::EndModal(int retCode)
{