From: Stefan Csomor Date: Fri, 15 Oct 2004 06:12:27 +0000 (+0000) Subject: removed IsShown guards, allowing now for manipulation of hidden toolbars X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1dd82eff99693729c49a1c578f3b47356c5c6f0c removed IsShown guards, allowing now for manipulation of hidden toolbars git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/toolbar.cpp b/src/mac/carbon/toolbar.cpp index c200e86f7b..21c9a569f3 100644 --- a/src/mac/carbon/toolbar.cpp +++ b/src/mac/carbon/toolbar.cpp @@ -481,17 +481,11 @@ wxString wxToolBar::MacGetToolTipString( wxPoint &pt ) void wxToolBar::DoEnableTool(wxToolBarToolBase *t, bool enable) { - if (!IsShown()) - return ; - ((wxToolBarTool*)t)->DoEnable( enable ) ; } void wxToolBar::DoToggleTool(wxToolBarToolBase *t, bool toggle) { - if (!IsShown()) - return ; - wxToolBarTool *tool = (wxToolBarTool *)t; if ( tool->IsButton() ) {