删除文件索引搜索不需要的黑名单判断

This commit is contained in:
hewenfei 2022-04-25 13:51:40 +08:00
parent 50bee43617
commit 55858964aa
1 changed files with 1 additions and 5 deletions

View File

@ -240,11 +240,7 @@ bool FileSearchFilter::operator ()(const Xapian::Document &doc) const
return true; return true;
}); });
bool inBlackList = std::any_of(parent->m_blackList.begin(), parent->m_blackList.end(), [&](QString &dir) { return inSearchDir;
return path.startsWith(dir);
});
return inSearchDir && !inBlackList;
} }
return true; return true;