From e6b34559663d0fd9fd123e35abd4d83c75508f82 Mon Sep 17 00:00:00 2001 From: fensite <857458455@qq.com> Date: Sat, 8 May 2021 11:02:13 +0800 Subject: [PATCH] Update search-manager.cpp --- libsearch/index/search-manager.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libsearch/index/search-manager.cpp b/libsearch/index/search-manager.cpp index 2772716..68e8605 100644 --- a/libsearch/index/search-manager.cpp +++ b/libsearch/index/search-manager.cpp @@ -422,20 +422,20 @@ void DirectSearch::run() { while(!bfs.empty()) { dir.setPath(bfs.dequeue()); list = dir.entryInfoList(); - for(auto i : list) { - if(i.isDir() && (!(i.isSymLink()))) { + for (auto i : list) { + if (i.isDir() && (!(i.isSymLink()))) { bool findIndex = false; QStringList blockList = GlobalSettings::getInstance()->getBlockDirs(); - for(QString j : blockList) { - if(i.absoluteFilePath().startsWith(j.prepend("/"))){ + for (QString j : blockList) { + if (i.absoluteFilePath().startsWith(j.prepend("/"))) { findIndex = true; break; } } - if(findIndex == true){ + if (findIndex == true) { qDebug() << "path is blocked:" << i.absoluteFilePath(); continue; }