[PC-BSD Commits] r6535 - pcbsd/trunk/SysInstaller
svn at pcbsd.org
svn at pcbsd.org
Thu Apr 8 07:34:23 PDT 2010
Author: kris
Date: 2010-04-08 07:34:23 -0700 (Thu, 08 Apr 2010)
New Revision: 6535
Modified:
pcbsd/trunk/SysInstaller/sys-installwidget.cpp
Log:
Added a few conditions for Restores in how we display output
Modified: pcbsd/trunk/SysInstaller/sys-installwidget.cpp
===================================================================
--- pcbsd/trunk/SysInstaller/sys-installwidget.cpp 2010-04-08 14:28:57 UTC (rev 6534)
+++ pcbsd/trunk/SysInstaller/sys-installwidget.cpp 2010-04-08 14:34:23 UTC (rev 6535)
@@ -23,6 +23,11 @@
connect(installProc,SIGNAL(readyRead()),this,SLOT(slotReadInstallerOutput()));
installProc->start(program, arguments);
+ // If doing a restore, set the progressBar to unknown
+ if ( radioRestore->isChecked() )
+ progressBarInstall->setRange(0, 0);
+
+
}
// Function run when the install failed to prompt user for course of action
@@ -108,12 +113,15 @@
while ( installProc->canReadLine() )
{
tmp = installProc->readLine();
- tmp.truncate(70);
+ tmp.truncate(60);
//qDebug() << tmp;
+ // If doing a restore, don't bother checking for other values
+ if ( radioRestore->isChecked() ) {
+ labelInstallStatus->setText(tmp);
+
// Check if we are doing Fetch Output
- if ( installFoundFetchOutput )
- {
+ } else if ( installFoundFetchOutput ) {
if ( tmp.indexOf("SIZE: ") != -1 ) {
// Get the total range first
More information about the Commits
mailing list