Browse Source

Propagate exclude from board to all units of a component

Fixes https://gitlab.com/kicad/code/kicad/issues/4650
pull/16/head
Ian McInerney 6 years ago
parent
commit
a97f14e217
  1. 1
      eeschema/dialogs/dialog_edit_component_in_schematic.cpp

1
eeschema/dialogs/dialog_edit_component_in_schematic.cpp

@ -536,6 +536,7 @@ bool DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::TransferDataFromWindow()
otherUnit->GetField( FOOTPRINT )->SetText( m_fields->at( FOOTPRINT ).GetText() ); otherUnit->GetField( FOOTPRINT )->SetText( m_fields->at( FOOTPRINT ).GetText() );
otherUnit->GetField( DATASHEET )->SetText( m_fields->at( DATASHEET ).GetText() ); otherUnit->GetField( DATASHEET )->SetText( m_fields->at( DATASHEET ).GetText() );
otherUnit->SetIncludeInBom( !m_cbExcludeFromBom->IsChecked() ); otherUnit->SetIncludeInBom( !m_cbExcludeFromBom->IsChecked() );
otherUnit->SetIncludeOnBoard( !m_cbExcludeFromBoard->IsChecked() );
GetParent()->RefreshItem( otherUnit ); GetParent()->RefreshItem( otherUnit );
} }
} }

Loading…
Cancel
Save