Browse Source

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

pull/15/head
Jeff Young 7 years ago
parent
commit
6aa0ceff36
  1. 2
      common/lib_tree_model_adapter.cpp

2
common/lib_tree_model_adapter.cpp

@ -451,7 +451,7 @@ LIB_TREE_NODE* LIB_TREE_MODEL_ADAPTER::ShowResults()
[]( LIB_TREE_NODE const* n )
{
// 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 );

Loading…
Cancel
Save