From 55858964aa1cc4d0550a21275edba4be0814f552 Mon Sep 17 00:00:00 2001 From: hewenfei Date: Mon, 25 Apr 2022 13:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E6=90=9C=E7=B4=A2=E4=B8=8D=E9=9C=80=E8=A6=81=E7=9A=84?= =?UTF-8?q?=E9=BB=91=E5=90=8D=E5=8D=95=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsearch/searchinterface/searchtasks/file-search-task.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libsearch/searchinterface/searchtasks/file-search-task.cpp b/libsearch/searchinterface/searchtasks/file-search-task.cpp index b91fd79..e8aa379 100644 --- a/libsearch/searchinterface/searchtasks/file-search-task.cpp +++ b/libsearch/searchinterface/searchtasks/file-search-task.cpp @@ -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;