pcbnew: Fix multiple delete bug
Delete events when using GAL are handled by only one tool handler instead of ROUTER_TOOL and EDIT_TOOL both deleting items. Fixes: lp:1715158 * https://bugs.launchpad.net/kicad/+bug/1715158
This commit is contained in:
parent
ee56e21f81
commit
a63e9b863b
|
@ -914,16 +914,6 @@ int ROUTER_TOOL::mainLoop( PNS::ROUTER_MODE aMode )
|
|||
{
|
||||
m_toolMgr->RunAction( PCB_ACTIONS::layerToggle, true );
|
||||
}
|
||||
else if( evt->IsAction( &PCB_ACTIONS::remove ) )
|
||||
{
|
||||
updateStartItem( *evt );
|
||||
deleteTraces( m_startItem, false );
|
||||
}
|
||||
else if( evt->IsAction( &PCB_ACTIONS::removeAlt ) )
|
||||
{
|
||||
updateStartItem( *evt );
|
||||
deleteTraces( m_startItem, true );
|
||||
}
|
||||
}
|
||||
|
||||
frame->SetNoToolSelected();
|
||||
|
|
Loading…
Reference in New Issue