From 12d5e76cc5c7f8c6b16cd6598def0e1a97c5e0eb Mon Sep 17 00:00:00 2001 From: jixiaoxu Date: Fri, 21 Apr 2023 17:20:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E7=B4=A2=E5=BC=95=E6=9B=B4=E6=96=B0=E6=97=B6=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=BF=87=E6=BB=A4=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsearch/index/index-updater.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libsearch/index/index-updater.cpp b/libsearch/index/index-updater.cpp index 03b471d..36e14ef 100644 --- a/libsearch/index/index-updater.cpp +++ b/libsearch/index/index-updater.cpp @@ -89,8 +89,10 @@ void IndexUpdater::UpdateIndex() contentDb.removeDocument(file.path()); } } else if(true == suffixMap[suffix] && !file.isDir()) { - if(FileUtils::isEncrypedOrUnsupport(file.path(), suffix) && (file.isModified() || file.isMoveTo())) { - contentDb.removeDocument(file.path()); + if(FileUtils::isEncrypedOrUnsupport(file.path(), suffix)) { + if(file.isModified() || file.isMoveTo()) { + contentDb.removeDocument(file.path()); + } continue; } qDebug() << "| index:" <