From: Julian Smart Date: Mon, 18 Oct 2004 22:07:47 +0000 (+0000) Subject: Don't remove generic status bar from parent, since it can be used on X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2841cdd89b8f68fbfe9414ac3f44408dfac77c7c?ds=inline Don't remove generic status bar from parent, since it can be used on arbitrary windows. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index 203295199a..b633fa4fa6 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -88,8 +88,12 @@ bool wxStatusBarGeneric::Create(wxWindow *parent, SetThemeEnabled( true ); // Don't wish this to be found as a child + // JACS: this is not true for the Windows native version, + // so why should it be true here? This control can be used + // as a child of an arbitrary window, not just for frames. + // Commenting out. #ifndef __WXMAC__ - parent->GetChildren().DeleteObject(this); + // parent->GetChildren().DeleteObject(this); #endif InitColours();