]> git.saurik.com Git - wxWidgets.git/commitdiff
Send wxInitDialogEvent under wxMotif.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 18 Sep 2005 22:48:51 +0000 (22:48 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 18 Sep 2005 22:48:51 +0000 (22:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/dialog.cpp

index a7e4fc8aa6515e64290801464923d89522958bc3..dae891831bc823f1181c09325e440178f12af83a 100644 (file)
@@ -293,6 +293,14 @@ bool wxDialog::Show( bool show )
 
     m_isShown = show;
 
 
     m_isShown = show;
 
+    if (show)
+    {
+        // this usually will result in TransferDataToWindow() being called
+        // which will change the controls values so do it before showing as
+        // otherwise we could have some flicker
+        InitDialog();
+    }
+
     if (show)
     {
         if (!wxUSE_INVISIBLE_RESIZE)
     if (show)
     {
         if (!wxUSE_INVISIBLE_RESIZE)