Net inspector: fix crash when switching boards on GTK
Can't invalidate columns while they are the sorting key
This commit is contained in:
parent
f00f47df13
commit
a5ef4f1bef
|
@ -861,6 +861,11 @@ void PCB_NET_INSPECTOR_PANEL::onBoardChanged( wxCommandEvent& event )
|
||||||
m_board_loaded = true;
|
m_board_loaded = true;
|
||||||
m_board_loading = true;
|
m_board_loading = true;
|
||||||
|
|
||||||
|
wxDataViewColumn* currentSorting = m_netsList->GetSortingColumn();
|
||||||
|
|
||||||
|
if( currentSorting )
|
||||||
|
currentSorting->UnsetAsSortKey();
|
||||||
|
|
||||||
PROJECT_LOCAL_SETTINGS& localSettings = Pgm().GetSettingsManager().Prj().GetLocalSettings();
|
PROJECT_LOCAL_SETTINGS& localSettings = Pgm().GetSettingsManager().Prj().GetLocalSettings();
|
||||||
auto& cfg = localSettings.m_NetInspectorPanel;
|
auto& cfg = localSettings.m_NetInspectorPanel;
|
||||||
m_searchCtrl->SetValue( cfg.filter_text );
|
m_searchCtrl->SetValue( cfg.filter_text );
|
||||||
|
|
Loading…
Reference in New Issue