diff --git a/src/plugins/cpptools/builtinindexingsupport.cpp b/src/plugins/cpptools/builtinindexingsupport.cpp index 99d50876a61..a3e95da947f 100644 --- a/src/plugins/cpptools/builtinindexingsupport.cpp +++ b/src/plugins/cpptools/builtinindexingsupport.cpp @@ -170,7 +170,7 @@ void indexFindErrors(QFutureInterface &indexingFuture, document->releaseSourceAndAST(); - indexingFuture.setProgressValue(files.size() - (files.size() - (i + 1))); + indexingFuture.setProgressValue(i + 1); } const QString elapsedTime = Utils::formatElapsedTime(timer.elapsed());