]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/toplvcmn.cpp
conversion warning gcc 3.3 mac
[wxWidgets.git] / src / common / toplvcmn.cpp
index d5d6bb27fef822d8c7a39a92f51b11b5c19bdc0c..71bc0468d3ba3af893e7a2248ee8560176c0c147 100644 (file)
@@ -16,7 +16,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "toplevelbase.h"
 #endif
 
@@ -80,6 +80,9 @@ bool wxTopLevelWindowBase::Destroy()
     if ( !wxPendingDelete.Member(this) )
         wxPendingDelete.Append(this);
 
+    // but hide it immediately
+    Hide();
+
     return TRUE;
 }