fixed wxGTK assert when closing wxMessageDialog

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2008-02-09 10:39:08 +00:00
parent 3b58a20550
commit 0af07cc245

View File

@ -82,7 +82,8 @@ wxDialog::~wxDialog()
m_isBeingDeleted = true;
// if the dialog is modal, this will end its event loop
Show(false);
if ( IsModal() )
EndModal(wxID_CANCEL);
}
bool wxDialog::IsModal() const