Update labels when editing field names.

This is yet another path for getting duplciate fields
when changing the case of an existing field name.
This commit is contained in:
Jeff Young 2024-01-23 14:58:56 +00:00
parent 9935a022cd
commit a836a66170
2 changed files with 2 additions and 0 deletions

View File

@ -759,6 +759,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnRenameField( wxCommandEvent& event )
m_dataModel->RenameColumn( col, newFieldName );
m_fieldsCtrl->SetTextValue( newFieldName, row, DISPLAY_NAME_COLUMN );
m_fieldsCtrl->SetTextValue( newFieldName, row, FIELD_NAME_COLUMN );
m_fieldsCtrl->SetTextValue( newFieldName, row, LABEL_COLUMN );
syncBomPresetSelection();
}

View File

@ -91,6 +91,7 @@ void FIELDS_EDITOR_GRID_DATA_MODEL::RenameColumn( int aCol, const wxString& newN
}
m_cols[aCol].m_fieldName = newName;
m_cols[aCol].m_label = newName;
}