Don't throw out search hits because they have unit children.

This commit is contained in:
Jeff Young 2019-06-19 21:27:58 +01:00
parent 485d436860
commit 6aa0ceff36
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,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 );