From 2d966a9205534547e7a5f68923cd4b8e54fbbe43 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Tue, 11 Mar 2008 12:50:59 +0000 Subject: [PATCH] Oops. When I changed the contents of the field earlier, I forgot to make this change 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/qt-console/joblist/joblist.cpp b/bacula/src/qt-console/joblist/joblist.cpp index 491fbb5ad5..4116d235d6 100644 --- a/bacula/src/qt-console/joblist/joblist.cpp +++ b/bacula/src/qt-console/joblist/joblist.cpp @@ -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); } -- 2.39.5