Fetch active sym before launching browser so we can start with it.

Fixes: lp:1813882
* https://bugs.launchpad.net/kicad/+bug/1813882
This commit is contained in:
Jeff Young 2019-01-30 21:50:13 +00:00
parent ca0164aa07
commit f425f49c19
1 changed files with 1 additions and 3 deletions

View File

@ -174,15 +174,13 @@ SCH_BASE_FRAME::COMPONENT_SELECTION SCH_BASE_FRAME::SelectComponentFromLibTree(
return COMPONENT_SELECTION();
COMPONENT_SELECTION sel;
LIB_ID id;
LIB_ID id = dlg.GetSelectedLibId( &sel.Unit );
if( dlg.IsExternalBrowserSelected() ) // User requested component browser.
{
sel = SelectComponentFromLibBrowser( this, aFilter, id, sel.Unit, sel.Convert );
id = sel.LibId;
}
else
id = dlg.GetSelectedLibId( &sel.Unit );
if( !id.IsValid() ) // Dialog closed by OK button,
// or the selection by lib browser was requested,