don't reset m_deferShow if Show() is called more than once, bug 1939534
authorPaul Cornett <paulcor@bullseye.com>
Sat, 19 Apr 2008 20:54:43 +0000 (20:54 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sat, 19 Apr 2008 20:54:43 +0000 (20:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp

index 94b65ad038102ec53bd23b33d712efedfd971ce9..bf8bde87c04b6b36ae8078abead99d76bf342ec5 100644 (file)
@@ -761,7 +761,7 @@ bool wxTopLevelWindowGTK::Show( bool show )
 {
     wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
 
-    bool deferShow = show && m_deferShow;
+    bool deferShow = show && m_deferShow && !m_isShown;
     if (deferShow)
     {
         m_deferShow =