Don't throw out search hits because they have unit children.
(Cherry-picked from 6aa0ceff36
)
Fixes https://gitlab.com/kicad/code/kicad/issues/3746
This commit is contained in:
parent
b23db7c4cb
commit
c1849f7e00
|
@ -459,7 +459,7 @@ LIB_TREE_NODE* LIB_TREE_MODEL_ADAPTER::ShowResults()
|
||||||
[]( LIB_TREE_NODE const* n )
|
[]( LIB_TREE_NODE const* n )
|
||||||
{
|
{
|
||||||
// return leaf nodes with some level of matching
|
// return leaf nodes with some level of matching
|
||||||
return n->Children.size() == 0 && n->Score > 1;
|
return n->Type == LIB_TREE_NODE::TYPE::LIBID && n->Score > 1;
|
||||||
},
|
},
|
||||||
&highScore );
|
&highScore );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue