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:
@@ -697,7 +697,11 @@ void wxToolBarBase::UpdateWindowUI(long flags)
|
|||||||
node;
|
node;
|
||||||
node = node->GetNext() )
|
node = node->GetNext() )
|
||||||
{
|
{
|
||||||
int id = node->GetData()->GetId();
|
wxToolBarToolBase * const tool = node->GetData();
|
||||||
|
if ( tool->IsSeparator() )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
int id = tool->GetId();
|
||||||
|
|
||||||
wxUpdateUIEvent event(id);
|
wxUpdateUIEvent event(id);
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
|
Reference in New Issue
Block a user