From 47123e5bff47cff6a8dcf12ba8da32111c3d35d6 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 16 May 2018 15:36:31 -0700 Subject: [PATCH] Allow routing removal of tracks by the router Fix a bug introduced by d0ffff3 that prevented items from being properly removed when the PNS router no longer needed them. Fixes: lp:1767826 * https://bugs.launchpad.net/kicad/+bug/1767826 --- pcbnew/tools/edit_tool.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 8829592dc..781e925dc 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -854,8 +854,9 @@ int EDIT_TOOL::Remove( const TOOL_EVENT& aEvent ) ROUTER_TOOL* routerTool = static_cast ( m_toolMgr->FindTool( "pcbnew.InteractiveRouter" ) ); - // Do not delete items while actively routing. - if( routerTool && routerTool->Router() && routerTool->Router()->RoutingInProgress() ) + // Do not delete items (by keypress) while actively routing. + if( aEvent.Category() == TC_KEYBOARD && routerTool && routerTool->Router() && + routerTool->Router()->RoutingInProgress() ) return 0; // get a copy instead of reference (as we're going to clear the selectio before removing items) -- 2.11.0