Don't allow deletion of pads when not in allow-free-pads mode.

Fixes https://gitlab.com/kicad/code/kicad/issues/8884
This commit is contained in:
Jeff Young
2021-07-29 16:03:25 +01:00
parent 6aaf4413b3
commit 9271ac1a4f
2 changed files with 86 additions and 32 deletions
+5 -2
View File
@@ -1042,8 +1042,11 @@ void PCB_SELECTION_TOOL::RemoveItemFromSel( BOARD_ITEM* aItem, bool aQuietMode )
{
unselect( aItem );
// Inform other potentially interested tools
m_toolMgr->ProcessEvent( EVENTS::UnselectedEvent );
if( !aQuietMode )
{
// Inform other potentially interested tools
m_toolMgr->ProcessEvent( EVENTS::UnselectedEvent );
}
}
}