]> git.sur5r.net Git - bacula/bacula/commitdiff
Use endtime to include the job that was clicked on.
authorDirk H Bartley <dbartley@schupan.com>
Mon, 14 May 2007 01:19:27 +0000 (01:19 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Mon, 14 May 2007 01:19:27 +0000 (01:19 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4776 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/restore/prerestore.cpp

index a97eeba5925e17b988af9ff324cf368e99257e83..8823d5ceeb156279674c00d1ef476528d8871302 100644 (file)
@@ -132,14 +132,14 @@ void prerestorePage::okButtonPushed()
 
    this->hide();
 
-   cmd = QString("restore ");
-   cmd += "fileset=\"" + filesetCombo->currentText() + "\" ";
-   cmd += "client=\"" + clientCombo->currentText() + "\" ";
+   cmd = QString("restore");
+   cmd += " fileset=\"" + filesetCombo->currentText() + "\"";
+   cmd += " client=\"" + clientCombo->currentText() + "\"";
    if (selectJobsRadio->isChecked()) {
       if (poolCombo->currentText() != "Any" ){
-         cmd += "pool=\"" + poolCombo->currentText() + "\" ";
+         cmd += " pool=\"" + poolCombo->currentText() + "\"";
       }
-      cmd += "storage=\"" + storageCombo->currentText() + "\" ";
+      cmd += " storage=\"" + storageCombo->currentText() + "\"";
       if (recentCheckBox->checkState() == Qt::Checked) {
          cmd += " current";
       } else {
@@ -252,7 +252,7 @@ void prerestorePage::jobdefsFromJob(QStringList &fieldlist, QString jobId)
    QString job, client, fileset;
    QString query("");
    query = "SELECT DISTINCT Job.Name AS JobName, Client.Name AS Client,"
-   " FileSet.FileSet AS FileSet, Job.Starttime AS JobStart"
+   " FileSet.FileSet AS FileSet, Job.EndTime AS JobEnd"
    " From Job, Client, FileSet"
    " WHERE Job.FileSetId=FileSet.FileSetId AND Job.ClientId=Client.ClientId"
    " AND JobId=\'" + jobId + "\'";