]> git.sur5r.net Git - bacula/bacula/commitdiff
Oops. When I changed the contents of the field earlier, I forgot to make this change
authorDirk H Bartley <dbartley@schupan.com>
Tue, 11 Mar 2008 12:50:59 +0000 (12:50 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Tue, 11 Mar 2008 12:50:59 +0000 (12:50 +0000)
to get the actions into the menu.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6582 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/joblist/joblist.cpp

index 491fbb5ad5c5d758d23784835ac30f8b58914937..4116d235d6a83f3322253cb901abd7a51e861857 100644 (file)
@@ -403,7 +403,7 @@ void JobList::tableItemChanged(QTableWidgetItem *currentItem, QTableWidgetItem *
       jobitem = mp_tableWidget->item(row, m_purgedIndex);
       QString purged = jobitem->text();
       mp_tableWidget->removeAction(actionPurgeFiles);
-      if (purged == "0") {
+      if (purged == "NOT") {
          mp_tableWidget->addAction(actionPurgeFiles);
       }
       /* include restore from time and job action or not */
@@ -411,7 +411,7 @@ void JobList::tableItemChanged(QTableWidgetItem *currentItem, QTableWidgetItem *
       QString type = jobitem->text();
       mp_tableWidget->removeAction(actionRestoreFromJob);
       mp_tableWidget->removeAction(actionRestoreFromTime);
-      if (type == "B") {
+      if (type == "Backup") {
          mp_tableWidget->addAction(actionRestoreFromJob);
          mp_tableWidget->addAction(actionRestoreFromTime);
       }