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:
Seth Hillbrand
2017-12-07 09:31:20 +01:00
committed by Maciej Suminski
parent ee56e21f81
commit a63e9b863b
-10
View File
@@ -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();