diff --git a/libsearch/index/first-index.cpp b/libsearch/index/first-index.cpp index 984edd1..ba07138 100644 --- a/libsearch/index/first-index.cpp +++ b/libsearch/index/first-index.cpp @@ -144,15 +144,15 @@ void FirstIndex::run(){ mutex2.lock(); mutex3.lock(); sem.acquire(4); - QtConcurrent::run([&](){ - sem.acquire(1); - mutex1.unlock(); - this->setPath(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)); - this->Traverse(); - FileUtils::_max_index_count = this->q_index->length(); - qDebug()<<"max_index_count:"<setPath(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)); + this->Traverse(); + FileUtils::_max_index_count = this->q_index->length(); + qDebug()<<"max_index_count:"<