Don't edit fields when more than one is selected.

Fixes https://gitlab.com/kicad/code/kicad/issues/7005
This commit is contained in:
Jeff Young 2021-01-08 20:42:23 +00:00
parent 8fffb75347
commit 51e6846ca5
1 changed files with 1 additions and 1 deletions

View File

@ -1193,7 +1193,7 @@ int SCH_EDIT_TOOL::EditField( const TOOL_EVENT& aEvent )
EE_SELECTION& selection = m_selectionTool->RequestSelection( filter ); EE_SELECTION& selection = m_selectionTool->RequestSelection( filter );
if( selection.Empty() ) if( selection.Size() != 1 )
return 0; return 0;
SCH_ITEM* item = (SCH_ITEM*) selection.Front(); SCH_ITEM* item = (SCH_ITEM*) selection.Front();