mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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 );
|
||||
|
||||
if( selection.Empty() )
|
||||
if( selection.Size() != 1 )
|
||||
return 0;
|
||||
|
||||
SCH_ITEM* item = (SCH_ITEM*) selection.Front();
|
||||
|
Loading…
x
Reference in New Issue
Block a user