don't show hidden child frames when the parent is restored

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-11-01 09:28:44 +00:00
parent 0dd6c07178
commit 9c72ebec90

View File

@@ -630,14 +630,12 @@ void wxFrame::IconizeChildFrames(bool bIconize)
// restoring it // restoring it
if ( bIconize ) if ( bIconize )
{ {
// note that we shouldn't touch the hidden frames neither frame->m_wasMinimized = frame->IsIconized();
// because iconizing/restoring them would show them as a side
// effect
frame->m_wasMinimized = frame->IsIconized() || !frame->IsShown();
} }
// this test works for both iconizing and restoring // note that we shouldn't touch the hidden frames neither because
if ( !frame->m_wasMinimized ) // iconizing/restoring them would show them as a side effect
if ( !frame->m_wasMinimized && frame->IsShown() )
frame->Iconize(bIconize); frame->Iconize(bIconize);
} }
} }