wxDialog::~wxDialog()
{
- m_isBeingDeleted = true;
-
// this will also reenable all the other windows for a modal dialog
Show(false);
// 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,