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:
parent
ca0164aa07
commit
f425f49c19
|
@ -174,15 +174,13 @@ SCH_BASE_FRAME::COMPONENT_SELECTION SCH_BASE_FRAME::SelectComponentFromLibTree(
|
||||||
return COMPONENT_SELECTION();
|
return COMPONENT_SELECTION();
|
||||||
|
|
||||||
COMPONENT_SELECTION sel;
|
COMPONENT_SELECTION sel;
|
||||||
LIB_ID id;
|
LIB_ID id = dlg.GetSelectedLibId( &sel.Unit );
|
||||||
|
|
||||||
if( dlg.IsExternalBrowserSelected() ) // User requested component browser.
|
if( dlg.IsExternalBrowserSelected() ) // User requested component browser.
|
||||||
{
|
{
|
||||||
sel = SelectComponentFromLibBrowser( this, aFilter, id, sel.Unit, sel.Convert );
|
sel = SelectComponentFromLibBrowser( this, aFilter, id, sel.Unit, sel.Convert );
|
||||||
id = sel.LibId;
|
id = sel.LibId;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
id = dlg.GetSelectedLibId( &sel.Unit );
|
|
||||||
|
|
||||||
if( !id.IsValid() ) // Dialog closed by OK button,
|
if( !id.IsValid() ) // Dialog closed by OK button,
|
||||||
// or the selection by lib browser was requested,
|
// or the selection by lib browser was requested,
|
||||||
|
|
Loading…
Reference in New Issue