]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/dialog.cpp
put frame creation code all inside MyFrame ctor
[wxWidgets.git] / src / palmos / dialog.cpp
index c368c78f564da6d59423646e858ff3fa7f373d6e..32989e6eef7546ab125d4fc938e86da7c2b238ee 100644 (file)
@@ -36,7 +36,7 @@
 #endif
 
 #include "wx/evtloop.h"
-#include "wx/ptr_scpd.h"
+#include "wx/scopedptr.h"
 
 // ----------------------------------------------------------------------------
 // wxWin macros
@@ -181,8 +181,7 @@ void wxDialog::Raise()
 // show dialog modally
 int wxDialog::ShowModal()
 {
-    if (show && CanDoLayoutAdaptation())
-        DoLayoutAdaptation();
+    Show (true);
 
     if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) {
         return 0;