]> git.saurik.com Git - wxWidgets.git/commitdiff
hide the MDI parent frame instead of just moving it away (why didn't I do it like...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 31 Aug 2005 22:53:51 +0000 (22:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 31 Aug 2005 22:53:51 +0000 (22:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/mdi.cpp

index dbdc6da93b791b2dae7bb6534aba2033571f20e4..b79928d8f6effd058471e5e1780bd1fe53349560 100644 (file)
@@ -237,8 +237,12 @@ bool wxMDIParentFrame::Show( bool show )
     if ( show )
     {
         // TODO: check for other children
-        if(!GetToolBar())
-            Move(-10000, -10000);
+        if ( !GetToolBar() )
+        {
+            // call the base class version to just update the flag but don't
+            // really make the window visible
+            return wxFrameBase::Show();
+        }
     }
 
     if ( !wxFrame::Show(show) )