Don't call PostCreation() for wxMessageDialog

Other dialogs don't do it and it doesn't seem to be really useful for
them.
This commit is contained in:
Vadim Zeitlin 2024-02-11 13:26:03 +01:00
parent 57349c2aaa
commit 6cc4662651

View file

@ -109,8 +109,6 @@ wxMessageDialog::wxMessageDialog( wxWindow *parent, const wxString& message,
if ( style & wxSTAY_ON_TOP )
dlg->setWindowModality( Qt::ApplicationModal );
PostCreation(false);
Centre(wxBOTH | wxCENTER_FRAME);
}