MacReopenApp implementation for restoring top-level window

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-05-29 14:00:23 +00:00
parent ac1cb8d36b
commit 43790a0d03

View File

@@ -305,6 +305,10 @@ void wxApp::MacNewFile()
void wxApp::MacReopenApp()
{
// eventually check for open docs, if none, call MacNewFile
wxTopLevelWindowMac* topLevelWindow = wxDynamicCast(GetTopWindow(), wxTopLevelWindowMac);
if (topLevelWindow && topLevelWindow->IsIconized())
topLevelWindow->Iconize(false);
}
//----------------------------------------------------------------------