git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24385
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// restoring it
if ( 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);
}
}
frame->Iconize(bIconize);
}
}