X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71d1d0e2e65268a8864625b709db296987b1a68c..020b60117ffcb7c631c15e46e6ecb931ef0c2d72:/src/univ/dialog.cpp diff --git a/src/univ/dialog.cpp b/src/univ/dialog.cpp index 79114b0d36..ad510bd277 100644 --- a/src/univ/dialog.cpp +++ b/src/univ/dialog.cpp @@ -71,7 +71,7 @@ bool wxDialog::Create(wxWindow *parent, void wxDialog::OnApply(wxCommandEvent &WXUNUSED(event)) { - if ( Validate() ) + if ( Validate() ) TransferDataFromWindow(); } @@ -150,9 +150,12 @@ bool wxDialog::Show(bool show) EndModal(wxID_CANCEL); } + if (show && CanDoLayoutAdaptation()) + DoLayoutAdaptation(); + bool ret = wxDialogBase::Show(show); - if ( show ) + if ( show ) InitDialog(); return ret;