Don't ask about locking twice.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18679
This commit is contained in:
Jeff Young 2024-10-14 10:55:46 +01:00
parent 26130af78c
commit a9f79093be

View File

@ -1919,7 +1919,7 @@ int EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
},
// Prompt user regarding locked items if in board editor and in free-pad-mode (if
// we're not in free-pad mode we delay this until the second RequestSelection()).
frame()->GetPcbNewSettings()->m_AllowFreePads && !m_isFootprintEditor );
!m_dragging && frame()->GetPcbNewSettings()->m_AllowFreePads && !m_isFootprintEditor );
if( selection.Empty() )
return 0;
@ -1943,7 +1943,7 @@ int EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
sTool->FilterCollectorForFreePads( aCollector );
sTool->FilterCollectorForTableCells( aCollector );
},
true /* prompt user regarding locked items */ );
!m_dragging /* prompt user regarding locked items */ );
}
// Did we filter everything out? If so, don't try to operate further