]> git.saurik.com Git - wxWidgets.git/commitdiff
Set the m_isShown flag appropriately from Show()
authorDavid Elliott <dfe@tgwbd.org>
Mon, 24 Mar 2003 21:41:49 +0000 (21:41 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 24 Mar 2003 21:41:49 +0000 (21:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/window.mm

index 554fdf65b446755cc83844181094443dd7d72a19..e877d7371bf415cd6d68eb2a9a27e96eb572fb9d 100644 (file)
@@ -148,7 +148,6 @@ bool wxWindow::Show(bool show)
         // But since we also retained it ourselves
         [m_dummyNSView release];
         m_dummyNSView = nil;
-        return true;
     }
     else
     {
@@ -157,8 +156,9 @@ bool wxWindow::Show(bool show)
         // NOTE: replaceSubView will cause m_cocaNSView to be released
         [[m_cocoaNSView superview] replaceSubview:m_cocoaNSView with:m_dummyNSView];
         // m_coocaNSView is now only retained by us
-        return true;
     }
+    m_isShown = show;
+    return true;
 }
 
 void wxWindowCocoa::DoSetSize(int x, int y, int width, int height, int sizeFlags)