ProjectExplorer: Fix build progress bar update

When using CMake, if the build queue includes two or more
steps (Rebuild or Build All), the build progress bar did not
update properly after completing the first step.

Change-Id: I1a72e9e8494233a7dca73bdb6c1b51717af1d53d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Viacheslav Tertychnyi
2020-03-30 18:59:07 +03:00
parent 3b740fccc8
commit 0ae676d84a

View File

@@ -652,7 +652,7 @@ void BuildManager::nextBuildQueue()
void BuildManager::progressChanged(int percent, const QString &text)
{
if (d->m_progressFutureInterface)
d->m_progressFutureInterface->setProgressValueAndText(percent, text);
d->m_progressFutureInterface->setProgressValueAndText(percent + 100 * d->m_progress, text);
}
void BuildManager::nextStep()