diff --git a/pcbnew/dialogs/dialog_net_inspector.cpp b/pcbnew/dialogs/dialog_net_inspector.cpp index f99b97ae58..7dac806e82 100644 --- a/pcbnew/dialogs/dialog_net_inspector.cpp +++ b/pcbnew/dialogs/dialog_net_inspector.cpp @@ -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 ) )