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
This commit is contained in:
Mike Williams 2021-07-23 22:06:26 -04:00
parent d613292b67
commit 13a03f77d3
1 changed files with 2 additions and 3 deletions

View File

@ -756,9 +756,8 @@ 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();
}
else