git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44845
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxWindowBase::UpdateWindowUI(flags);
{
wxWindowBase::UpdateWindowUI(flags);
+ // don't waste time updating state of tools in a hidden toolbar
+ if ( !IsShown() )
+ return;
+
// There is no sense in updating the toolbar UI
// if the parent window is about to get destroyed
wxWindow *tlw = wxGetTopLevelParent( this );
// There is no sense in updating the toolbar UI
// if the parent window is about to get destroyed
wxWindow *tlw = wxGetTopLevelParent( this );