X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2fc40b4786f7ae8c255ce1184441bd94d9554a0..9914bfbb77f48baf869b63aff58feb2b145ff4d3:/src/palmos/dialog.cpp diff --git a/src/palmos/dialog.cpp b/src/palmos/dialog.cpp index 32535b9bca..4358cfef5f 100644 --- a/src/palmos/dialog.cpp +++ b/src/palmos/dialog.cpp @@ -36,7 +36,7 @@ #endif #include "wx/evtloop.h" -#include "wx/ptr_scpd.h" +#include "wx/scopedptr.h" // ---------------------------------------------------------------------------- // wxWin macros @@ -161,13 +161,11 @@ wxDialog::~wxDialog() // showing the dialogs // ---------------------------------------------------------------------------- -wxWindow *wxDialog::FindSuitableParent() const -{ - return NULL; -} - bool wxDialog::Show(bool show) { + if (show && CanDoLayoutAdaptation()) + DoLayoutAdaptation(); + return wxTopLevelWindowPalm::Show (show); } @@ -178,6 +176,8 @@ void wxDialog::Raise() // show dialog modally int wxDialog::ShowModal() { + Show (true); + if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) { return 0; }