forked from openkylin/ukui-search
删除文件索引搜索不需要的黑名单判断
This commit is contained in:
parent
50bee43617
commit
55858964aa
|
@ -240,11 +240,7 @@ bool FileSearchFilter::operator ()(const Xapian::Document &doc) const
|
|||
return true;
|
||||
});
|
||||
|
||||
bool inBlackList = std::any_of(parent->m_blackList.begin(), parent->m_blackList.end(), [&](QString &dir) {
|
||||
return path.startsWith(dir);
|
||||
});
|
||||
|
||||
return inSearchDir && !inBlackList;
|
||||
return inSearchDir;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue