X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb0afb266214f827417c42474168c7edda7c953e..1ce5dd35ebae68444e0faca73f087c63a8314a05:/src/msw/frame.cpp diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 06506d259a..2885c3ed50 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -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); } }