Don't edit fields when more than one is selected.
Fixes https://gitlab.com/kicad/code/kicad/issues/7005
This commit is contained in:
parent
8fffb75347
commit
51e6846ca5
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue