LibTree selection should follow footprint after Save As.

Fixes https://gitlab.com/kicad/code/kicad/issues/9913
This commit is contained in:
Jeff Young 2021-12-10 00:44:48 +00:00
parent 4f60d7ac78
commit 84e0feeee6
1 changed files with 3 additions and 0 deletions

View File

@ -302,7 +302,10 @@ int FOOTPRINT_EDITOR_CONTROL::SaveAs( const TOOL_EVENT& aEvent )
FOOTPRINT* footprint = m_frame->LoadFootprint( m_frame->GetTargetFPID() );
if( footprint && m_frame->SaveFootprintAs( footprint ) )
{
m_frame->SyncLibraryTree( true );
m_frame->FocusOnLibID( footprint->GetFPID() );
}
}
m_frame->RefreshLibraryTree();