Don't inherit previously-selected alias properties when deleting.
Fixes: lp:1810768 * https://bugs.launchpad.net/kicad/+bug/1810768
This commit is contained in:
parent
ed03d3436d
commit
15af0cc43d
eeschema/dialogs
|
@ -709,6 +709,7 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnDeleteAlias( wxCommandEvent& event )
|
|||
|
||||
m_aliasListBox->Delete( (unsigned) sel );
|
||||
m_aliasesBuffer.erase( m_aliasesBuffer.begin() + sel );
|
||||
m_currentAlias = wxNOT_FOUND;
|
||||
|
||||
if( m_aliasListBox->GetCount() == 0 )
|
||||
m_aliasListBox->SetSelection( wxNOT_FOUND );
|
||||
|
|
Loading…
Reference in New Issue