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:
parent
d613292b67
commit
13a03f77d3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue