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:
parent
9935a022cd
commit
a836a66170
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue