]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/frame.cpp
1.
[wxWidgets.git] / src / msw / frame.cpp
index 06506d259a82987eb1ee2051fcb06404eea1e7d8..2885c3ed50b8c52ed5867653afe8f8511b61de74 100644 (file)
@@ -630,14 +630,12 @@ void wxFrame::IconizeChildFrames(bool bIconize)
             // restoring it
             if ( bIconize )
             {
-                // note that we shouldn't touch the hidden frames neither
-                // because iconizing/restoring them would show them as a side
-                // effect
-                frame->m_wasMinimized = frame->IsIconized() || !frame->IsShown();
+                frame->m_wasMinimized = frame->IsIconized();
             }
 
-            // this test works for both iconizing and restoring
-            if ( !frame->m_wasMinimized )
+            // note that we shouldn't touch the hidden frames neither because
+            // iconizing/restoring them would show them as a side effect
+            if ( !frame->m_wasMinimized && frame->IsShown() )
                 frame->Iconize(bIconize);
         }
     }