X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0af07cc24519a07e1948169568c979fea7465ce2..35d5da677d3203d7027eb28b1b6878be9d920108:/src/gtk/dialog.cpp?ds=sidebyside diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index ebc4506665..dcdaec3cbe 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(); @@ -98,11 +98,7 @@ void wxDialog::SetModal( bool WXUNUSED(flag) ) int wxDialog::ShowModal() { - if (IsModal()) - { - wxFAIL_MSG( wxT("wxDialog:ShowModal called twice") ); - return GetReturnCode(); - } + wxASSERT_MSG( !IsModal(), "ShowModal() can't be called twice" ); // release the mouse if it's currently captured as the window having it // will be disabled when this dialog is shown -- but will still keep the