X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9efc294a979fb4ae801f7dc37af35677301212d..1a8fa7d2fab2686a4e4c6f486416d6c8533d390b:/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