summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@nokia.com>2012-06-13 09:34:16 +0200
committerTim Jenssen <tim.jenssen@nokia.com>2012-06-13 12:50:08 +0200
commitdf9a92b9cd4baaca02cff375132e67d163074255 (patch)
treef312b71af4f40e58e12aa0772d1d103d28f19e20
parent24ed013261dcf2622ac5297122db1a2b350e432c (diff)
add a comment why there is another percent point
Change-Id: I3e26de71cf8eebbdbf57cb2aa85c7e4b16782da1 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
-rw-r--r--src/libs/installer/packagemanagercore_p.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/installer/packagemanagercore_p.cpp b/src/libs/installer/packagemanagercore_p.cpp
index 25faa5f50..11b573422 100644
--- a/src/libs/installer/packagemanagercore_p.cpp
+++ b/src/libs/installer/packagemanagercore_p.cpp
@@ -1483,6 +1483,7 @@ bool PackageManagerCorePrivate::runInstaller()
// fake a possible wrong value to show a full progress bar
const int progress = ProgressCoordinator::instance()->progressInPercentage();
+ // usually this should be only the reserved one from the beginning
if (progress < 100)
ProgressCoordinator::instance()->addManualPercentagePoints(100 - progress);
ProgressCoordinator::instance()->emitLabelAndDetailTextChanged(tr("\nInstallation finished!"));
@@ -1648,6 +1649,7 @@ bool PackageManagerCorePrivate::runPackageUpdater()
// fake a possible wrong value to show a full progress bar
const int progress = ProgressCoordinator::instance()->progressInPercentage();
+ // usually this should be only the reserved one from the beginning
if (progress < 100)
ProgressCoordinator::instance()->addManualPercentagePoints(100 - progress);
ProgressCoordinator::instance()->emitLabelAndDetailTextChanged(tr("\nUpdate finished!"));