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:" <