From 8c162ecbcab943008d66a0ef92117083383ee2cd Mon Sep 17 00:00:00 2001 From: JamesJCode <13408010-JamesJCode@users.noreply.gitlab.com> Date: Mon, 31 Mar 2025 20:43:27 +0100 Subject: [PATCH] Freeze net inspector data view when rebuilding the list of nets Attempt to fix #20521 but it is very hard to reproduce Fixes https://gitlab.com/kicad/code/kicad/-/issues/20521 --- pcbnew/widgets/pcb_net_inspector_panel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/widgets/pcb_net_inspector_panel.cpp b/pcbnew/widgets/pcb_net_inspector_panel.cpp index 61e91efb16..fc2a8309e6 100644 --- a/pcbnew/widgets/pcb_net_inspector_panel.cpp +++ b/pcbnew/widgets/pcb_net_inspector_panel.cpp @@ -399,6 +399,8 @@ void PCB_NET_INSPECTOR_PANEL::buildNetsList( bool rebuildColumns ) m_in_build_nets_list = true; + m_netsList->Freeze(); + PROJECT_LOCAL_SETTINGS& localSettings = Pgm().GetSettingsManager().Prj().GetLocalSettings(); PANEL_NET_INSPECTOR_SETTINGS* cfg = &localSettings.m_NetInspectorPanel; @@ -583,6 +585,8 @@ void PCB_NET_INSPECTOR_PANEL::buildNetsList( bool rebuildColumns ) alg::delete_matching( prev_selected_netcodes, -1 ); + m_netsList->Thaw(); + m_in_build_nets_list = false; }