Ativate delete tool so it can display the selection clarification menu when needed.

Fixes: lp:1835371
* https://bugs.launchpad.net/kicad/+bug/1835371
This commit is contained in:
Jeff Young 2019-08-03 22:16:35 -06:00
parent 3e8ebe0a2a
commit c60118b6a4
1 changed files with 1 additions and 0 deletions

View File

@ -805,6 +805,7 @@ int EDIT_TOOL::Remove( const TOOL_EVENT& aEvent )
return 1;
std::vector<BOARD_ITEM*> lockedItems;
Activate();
// get a copy instead of reference (as we're going to clear the selection before removing items)
PCBNEW_SELECTION selectionCopy;