[PC-BSD Commits] r13035 - pcbsd/current/src-qt4/pc-sysinstaller
svn at pcbsd.org
svn at pcbsd.org
Wed Sep 28 11:52:40 PDT 2011
Author: kris
Date: 2011-09-28 11:52:40 -0700 (Wed, 28 Sep 2011)
New Revision: 13035
Modified:
pcbsd/current/src-qt4/pc-sysinstaller/sys-installwidget.cpp
Log:
Increment the progress range a bit to only show 100% when done
Modified: pcbsd/current/src-qt4/pc-sysinstaller/sys-installwidget.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysinstaller/sys-installwidget.cpp 2011-09-28 18:34:38 UTC (rev 13034)
+++ pcbsd/current/src-qt4/pc-sysinstaller/sys-installwidget.cpp 2011-09-28 18:52:40 UTC (rev 13035)
@@ -140,7 +140,7 @@
tmp.truncate(tmp.indexOf(" "));
range = tmp.toInt(&ok);
if ( ok )
- progressBarInstall->setRange(0, range);
+ progressBarInstall->setRange(0, range + 1);
// Now get the current progress
tmp = line;
@@ -173,7 +173,7 @@
range = tmp.toInt(&ok);
if ( ok ) {
range = range + 50;
- progressBarInstall->setRange(0, range);
+ progressBarInstall->setRange(0, range + 1);
installFoundCounter = true;
if ( availPackageData )
labelInstallStatus->setText(tr("Extracting system image..."));
@@ -190,7 +190,7 @@
tmp = tmp.remove(0, tmp.indexOf(":") + 1 );
range = tmp.toInt(&ok);
if ( ok ) {
- progressBarInstall->setRange(0, range);
+ progressBarInstall->setRange(0, range + 1);
progressBarInstall->setValue(0);
labelInstallStatus2->setHidden(false);
progressBarInstall2->setHidden(false);
More information about the Commits
mailing list