From 13a03f77d3be07a679dca295b1cd850c6844fcdd Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Fri, 23 Jul 2021 22:06:26 -0400 Subject: [PATCH] Eeschema: Fix for delete key in wire tool Delete key was not working for items selected with wire tool active. Fixes https://gitlab.com/kicad/code/kicad/-/issues/8841 --- eeschema/tools/sch_line_wire_bus_tool.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eeschema/tools/sch_line_wire_bus_tool.cpp b/eeschema/tools/sch_line_wire_bus_tool.cpp index 21c1822800..b8df9aa7da 100644 --- a/eeschema/tools/sch_line_wire_bus_tool.cpp +++ b/eeschema/tools/sch_line_wire_bus_tool.cpp @@ -756,10 +756,9 @@ int SCH_LINE_WIRE_BUS_TOOL::doDrawSegments( const std::string& aTool, int aType, segment = doUnfoldBus( net, contextMenuPos ); } } - else if( evt->IsAction( &ACTIONS::doDelete ) ) + else if( evt->IsAction( &ACTIONS::doDelete ) && ( segment || m_busUnfold.in_progress ) ) { - if( segment || m_busUnfold.in_progress ) - cleanup(); + cleanup(); } else {