if (show && CanDoLayoutAdaptation())
DoLayoutAdaptation();
- bool ret = wxWindow::Show( show );
+ bool ret = wxDialogBase::Show(show);
if (show)
InitDialog();
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