blind fix for iconizing/restoring hidden child frames bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-11-28 00:36:22 +00:00
parent 6f20c54861
commit d7d0296285

View File

@ -531,7 +531,10 @@ void wxFrame::IconizeChildFrames(bool bIconize)
// restoring it
if ( bIconize )
{
frame->m_wasMinimized = frame->IsIconized();
// 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();
}
// this test works for both iconizing and restoring