summaryrefslogtreecommitdiffstats
path: root/src/libs/installer
diff options
context:
space:
mode:
authorChristoph VogtlÃĪnder <c.vogtlaender@sigma-surface-science.com>2014-12-10 12:04:01 +0100
committerNiels Weber <niels.weber@theqtcompany.com>2014-12-10 15:43:57 +0100
commit75220131a2fd9888ac78bb31e2db9765752b75ce (patch)
tree5f0bf7d1a1b80c09c02d67eb25860053bb144a23 /src/libs/installer
parent71c248e2704225dc4e361699d08fe3b422a4da4f (diff)
fix progress calculation
use number of components stored in "names" and not the size of the string "name" to calculate progress. Task-number: QTIFW-602 Change-Id: If96a1233c9eef6600e995b29e30e7d8dcf5c477d Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Diffstat (limited to 'src/libs/installer')
-rw-r--r--src/libs/installer/createlocalrepositoryoperation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/createlocalrepositoryoperation.cpp b/src/libs/installer/createlocalrepositoryoperation.cpp
index b2f7232d8..c53cebee6 100644
--- a/src/libs/installer/createlocalrepositoryoperation.cpp
+++ b/src/libs/installer/createlocalrepositoryoperation.cpp
@@ -291,7 +291,7 @@ bool CreateLocalRepositoryOperation::performOperation()
if (!isOpen) // If we reach that point, either the resource was opened already.
resource->close(); // or we did open it and have to close it again.
}
- emit progressChanged(.65f + ((double(i) / double(name.count())) * .25f));
+ emit progressChanged(.65f + ((double(i) / double(names.count())) * .25f));
}
}