From: Dirk H Bartley Date: Tue, 11 Mar 2008 12:50:59 +0000 (+0000) Subject: Oops. When I changed the contents of the field earlier, I forgot to make this change X-Git-Tag: Release-7.0.0~4860 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d966a9205534547e7a5f68923cd4b8e54fbbe43;p=bacula%2Fbacula 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 --- 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); }