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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user