]> git.saurik.com Git - wxWidgets.git/commitdiff
MacReopenApp implementation for restoring top-level window
authorJulian Smart <julian@anthemion.co.uk>
Sat, 29 May 2004 14:00:23 +0000 (14:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 29 May 2004 14:00:23 +0000 (14:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/app.cpp

index 966003d5f9309d268f62a2e982a5c366a7d8ceaf..dd66fb10e44544197e576fd15e96616a29e3ca3e 100644 (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);
 }
 
 //----------------------------------------------------------------------