don't waste time sending out update UI events for separators, they can't be updated anyhow

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-09-21 13:05:56 +00:00
parent f7b8e3d654
commit 74c80fe40b

View File

@@ -697,7 +697,11 @@ void wxToolBarBase::UpdateWindowUI(long flags)
node;
node = node->GetNext() )
{
int id = node->GetData()->GetId();
wxToolBarToolBase * const tool = node->GetData();
if ( tool->IsSeparator() )
continue;
int id = tool->GetId();
wxUpdateUIEvent event(id);
event.SetEventObject(this);