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

Fixes: lp:1835371
* https://bugs.launchpad.net/kicad/+bug/1835371

(cherry picked from commit c60118b6a4)
This commit is contained in:
Jeff Young 2019-08-03 22:16:35 -06:00
parent c9956def36
commit 72c0267fe6
1 changed files with 1 additions and 0 deletions

View File

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