X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fb09a08c7e675034bd0fe900ee6544415e75768..a4761b4c08e6272c69bd242b3323ab47dbbc8902:/src/gtk/dialog.cpp diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index c70813d557..dcdaec3cbe 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -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