]> git.saurik.com Git - wxWidgets.git/commitdiff
ignore hidden windows when deciding if the MDI parent frame should be visible
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 Sep 2005 23:28:40 +0000 (23:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 Sep 2005 23:28:40 +0000 (23:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/mdi.cpp

index c7d898778bc41aa4f1dffa9427b6118944284761..33cc7da62396dd568b7247f9582b558e57d8d1dc 100644 (file)
@@ -290,11 +290,14 @@ bool wxMDIParentFrame::ShouldBeVisible() const
           node;
           node = node->GetNext() )
     {
-        if ( !wxDynamicCast(node->GetData(), wxMDIChildFrame)
+        wxWindow *win = node->GetData();
+
+        if ( win->IsShown()
+                && !wxDynamicCast(win, wxMDIChildFrame)
 #if wxUSE_STATUSBAR
-                && node->GetData() != GetStatusBar()
+                    && win != GetStatusBar()
 #endif // wxUSE_STATUSBAR
-                    && node->GetData() != GetClientWindow() )
+                        && win != GetClientWindow() )
         {
             // if we have a non-MDI child, do remain visible so that it could
             // be used