diff --git a/pcbnew/widgets/pcb_net_inspector_panel.cpp b/pcbnew/widgets/pcb_net_inspector_panel.cpp index 205342da7d..5530caa90f 100644 --- a/pcbnew/widgets/pcb_net_inspector_panel.cpp +++ b/pcbnew/widgets/pcb_net_inspector_panel.cpp @@ -861,6 +861,11 @@ void PCB_NET_INSPECTOR_PANEL::onBoardChanged( wxCommandEvent& event ) m_board_loaded = true; m_board_loading = true; + wxDataViewColumn* currentSorting = m_netsList->GetSortingColumn(); + + if( currentSorting ) + currentSorting->UnsetAsSortKey(); + PROJECT_LOCAL_SETTINGS& localSettings = Pgm().GetSettingsManager().Prj().GetLocalSettings(); auto& cfg = localSettings.m_NetInspectorPanel; m_searchCtrl->SetValue( cfg.filter_text );