From df9a92b9cd4baaca02cff375132e67d163074255 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Wed, 13 Jun 2012 09:34:16 +0200 Subject: add a comment why there is another percent point Change-Id: I3e26de71cf8eebbdbf57cb2aa85c7e4b16782da1 Reviewed-by: Karsten Heimrich --- src/libs/installer/packagemanagercore_p.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libs/installer/packagemanagercore_p.cpp') 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!")); -- cgit v1.2.3