Make sure board netinfo list is updated when net inspector renames a net

This commit is contained in:
Jon Evans 2021-04-20 21:15:42 -04:00
parent cbd7d698a9
commit c973a447df
1 changed files with 2 additions and 0 deletions

View File

@ -1870,7 +1870,9 @@ void DIALOG_NET_INSPECTOR::onRenameNet( wxCommandEvent& aEvent )
// is easier.
auto removed_item = m_data_model->deleteItem( m_data_model->findItem( net ) );
m_brd->GetNetInfo().RemoveNet( net );
net->SetNetname( fullNetName );
m_brd->GetNetInfo().AppendNet( net );
m_frame->OnModify();
if( netFilterMatches( net ) )