Don't leave tools with stale state when reloading fp.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16414
This commit is contained in:
Jeff Young 2023-12-30 21:04:30 +00:00
parent 2e02ca9d14
commit 6c39e67342
1 changed files with 1 additions and 1 deletions

View File

@ -1238,7 +1238,7 @@ void PCB_BASE_FRAME::OnFpChangeDebounceTimer( wxTimerEvent& aEvent )
selectedItems.emplace_back( item->m_Uuid );
}
m_toolManager->RunAction( PCB_ACTIONS::selectionClear );
m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD );
ReloadFootprint( newfp );