Fetching name got moved, but it got moved to before it was fetched out of the fields grid.
Fixes: lp:1834711 * https://bugs.launchpad.net/kicad/+bug/1834711
This commit is contained in:
parent
d88bddad7e
commit
62d453ecd8
|
@ -312,7 +312,7 @@ bool DIALOG_EDIT_COMPONENT_IN_LIBRARY::TransferDataFromWindow()
|
||||||
|
|
||||||
LIB_ALIAS* rootAlias = m_libEntry->GetAlias( m_libEntry->GetName() );
|
LIB_ALIAS* rootAlias = m_libEntry->GetAlias( m_libEntry->GetName() );
|
||||||
// We need to keep the name and the value the same at the moment!
|
// We need to keep the name and the value the same at the moment!
|
||||||
wxString newName = m_libEntry->GetValueField().GetText();
|
wxString newName = m_fields->at( VALUE ).GetText();
|
||||||
|
|
||||||
if( m_libEntry->GetName() != newName )
|
if( m_libEntry->GetName() != newName )
|
||||||
m_Parent->SaveCopyInUndoList( m_libEntry, UR_LIB_RENAME );
|
m_Parent->SaveCopyInUndoList( m_libEntry, UR_LIB_RENAME );
|
||||||
|
|
Loading…
Reference in New Issue