From: David Elliott Date: Mon, 24 Mar 2003 21:41:49 +0000 (+0000) Subject: Set the m_isShown flag appropriately from Show() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a6b4ff2e6265f83b5edd22e74832869f121631b6 Set the m_isShown flag appropriately from Show() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index 554fdf65b4..e877d7371b 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -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)