Removed redundant calls to wxUpdateUIEvent handlers

This is done automatically by wxWidgets
and does not need to be called explicitly.
This commit is contained in:
Maciej Suminski 2017-01-27 12:10:21 +01:00
parent 750eed7ff5
commit 24d63fb5d9
1 changed files with 0 additions and 8 deletions

View File

@ -213,8 +213,6 @@ int PCB_EDITOR_CONTROL::TrackWidthInc( const TOOL_EVENT& aEvent )
board->GetDesignSettings().SetTrackWidthIndex( widthIndex );
board->GetDesignSettings().UseCustomTrackViaSize( false );
wxUpdateUIEvent dummy;
m_frame->OnUpdateSelectTrackWidth( dummy );
m_toolMgr->RunAction( COMMON_ACTIONS::trackViaSizeChanged );
return 0;
@ -232,8 +230,6 @@ int PCB_EDITOR_CONTROL::TrackWidthDec( const TOOL_EVENT& aEvent )
board->GetDesignSettings().SetTrackWidthIndex( widthIndex );
board->GetDesignSettings().UseCustomTrackViaSize( false );
wxUpdateUIEvent dummy;
m_frame->OnUpdateSelectTrackWidth( dummy );
m_toolMgr->RunAction( COMMON_ACTIONS::trackViaSizeChanged );
return 0;
@ -251,8 +247,6 @@ int PCB_EDITOR_CONTROL::ViaSizeInc( const TOOL_EVENT& aEvent )
board->GetDesignSettings().SetViaSizeIndex( sizeIndex );
board->GetDesignSettings().UseCustomTrackViaSize( false );
wxUpdateUIEvent dummy;
m_frame->OnUpdateSelectViaSize( dummy );
m_toolMgr->RunAction( COMMON_ACTIONS::trackViaSizeChanged );
return 0;
@ -270,8 +264,6 @@ int PCB_EDITOR_CONTROL::ViaSizeDec( const TOOL_EVENT& aEvent )
board->GetDesignSettings().SetViaSizeIndex( sizeIndex );
board->GetDesignSettings().UseCustomTrackViaSize( false );
wxUpdateUIEvent dummy;
m_frame->OnUpdateSelectViaSize( dummy );
m_toolMgr->RunAction( COMMON_ACTIONS::trackViaSizeChanged );
return 0;