logic: Fix indexing progress dialog not updated when fetching storage
This commit is contained in:
@@ -117,7 +117,10 @@ Task::TaskState TaskBuildIndex::doUpdate(std::shared_ptr<Blackboard> blackboard)
|
||||
return STATE_FAILURE;
|
||||
}
|
||||
|
||||
fetchIntermediateStorages(blackboard);
|
||||
if (fetchIntermediateStorages(blackboard))
|
||||
{
|
||||
updateIndexingDialog(blackboard, FilePath());
|
||||
}
|
||||
|
||||
const int SLEEP_TIME_MS = 50;
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_TIME_MS));
|
||||
|
||||
@@ -262,7 +262,11 @@ void QtIndexingDialog::updateIndexingProgress(size_t fileCount, size_t totalFile
|
||||
progress = fileCount * 100 / totalFileCount;
|
||||
}
|
||||
|
||||
m_sourcePath = QString::fromStdString(sourcePath);
|
||||
if (sourcePath.size())
|
||||
{
|
||||
m_sourcePath = QString::fromStdString(sourcePath);
|
||||
}
|
||||
|
||||
updateProgress(progress);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user