Update search-manager.cpp
This commit is contained in:
parent
b552c4f7a5
commit
e6b3455966
|
@ -422,20 +422,20 @@ void DirectSearch::run() {
|
||||||
while(!bfs.empty()) {
|
while(!bfs.empty()) {
|
||||||
dir.setPath(bfs.dequeue());
|
dir.setPath(bfs.dequeue());
|
||||||
list = dir.entryInfoList();
|
list = dir.entryInfoList();
|
||||||
for(auto i : list) {
|
for (auto i : list) {
|
||||||
if(i.isDir() && (!(i.isSymLink()))) {
|
if (i.isDir() && (!(i.isSymLink()))) {
|
||||||
|
|
||||||
bool findIndex = false;
|
bool findIndex = false;
|
||||||
|
|
||||||
QStringList blockList = GlobalSettings::getInstance()->getBlockDirs();
|
QStringList blockList = GlobalSettings::getInstance()->getBlockDirs();
|
||||||
for(QString j : blockList) {
|
for (QString j : blockList) {
|
||||||
if(i.absoluteFilePath().startsWith(j.prepend("/"))){
|
if (i.absoluteFilePath().startsWith(j.prepend("/"))) {
|
||||||
findIndex = true;
|
findIndex = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(findIndex == true){
|
if (findIndex == true) {
|
||||||
qDebug() << "path is blocked:" << i.absoluteFilePath();
|
qDebug() << "path is blocked:" << i.absoluteFilePath();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue