Set library selection when pre-loading the Footprint Viewer.

Fixes: lp:1826932
* https://bugs.launchpad.net/kicad/+bug/1826932

(cherry picked from commit 8efe8d1835)
This commit is contained in:
Jeff Young 2019-06-27 00:40:08 +01:00
parent be9cd98cb1
commit ce329e13fb
1 changed files with 2 additions and 0 deletions

View File

@ -618,6 +618,8 @@ bool FOOTPRINT_VIEWER_FRAME::ShowModal( wxString* aFootprint, wxWindow* aParent
{
setCurNickname( nickname );
setCurFootprintName( fpid.GetLibItemName() );
m_libList->SetStringSelection( nickname );
ReCreateFootprintList();
}