X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9efc294a979fb4ae801f7dc37af35677301212d..fe828a03f46181cc172bf61739fe09a043f73aea:/src/gtk/dialog.cpp diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index 8a087ecae6..c70813d557 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -69,7 +69,7 @@ bool wxDialog::Show( bool show ) if (show && CanDoLayoutAdaptation()) DoLayoutAdaptation(); - bool ret = wxWindow::Show( show ); + bool ret = wxDialogBase::Show(show); if (show) InitDialog(); @@ -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