From: Kern Sibbald Date: Sun, 18 Feb 2007 20:12:11 +0000 (+0000) Subject: Remove reference to non-existant variable X-Git-Tag: Release-7.0.0~6873 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7042c21d7dda5de14a9f5f594434bcb7114abea6;p=bacula%2Fbacula Remove reference to non-existant variable git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4204 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/dird_conf.c b/bacula/src/dird/dird_conf.c index 301d9b1661..a7c306ba34 100644 --- a/bacula/src/dird/dird_conf.c +++ b/bacula/src/dird/dird_conf.c @@ -361,7 +361,7 @@ static RES_ITEM pool_items[] = { {"storage", store_alist_res, ITEM(res_pool.storage), R_STORAGE, 0, 0}, {"autoprune", store_bool, ITEM(res_pool.AutoPrune), 0, ITEM_DEFAULT, true}, {"recycle", store_bool, ITEM(res_pool.Recycle), 0, ITEM_DEFAULT, true}, - {"recyclepool", store_res, ITEM(res_pool.RecyclePool), R_POOL, 0, 0}, +// {"recyclepool", store_res, ITEM(res_pool.RecyclePool), R_POOL, 0, 0}, {NULL, NULL, {0}, 0, 0, 0} }; diff --git a/bacula/src/qt-console/label/label.cpp b/bacula/src/qt-console/label/label.cpp index 4fdd3f1ea5..21b7ef839e 100644 --- a/bacula/src/qt-console/label/label.cpp +++ b/bacula/src/qt-console/label/label.cpp @@ -35,6 +35,7 @@ #include "bat.h" #include "label.h" +#include labelDialog::labelDialog(Console *console) { @@ -46,29 +47,18 @@ labelDialog::labelDialog(Console *console) void labelDialog::accept() { - printf("Storage=%s\n" - "Pool=%s\n", - storageCombo->currentText().toUtf8().data(), - poolCombo->currentText().toUtf8().data()); - this->hide(); - delete this; - -#ifdef xxx - volume = get_entry_text(label_dialog, "label_entry_volume"); - - slot = get_spin_text(label_dialog, "label_slot"); - - if (!pool || !storage || !volume || !(*volume)) { - set_status_ready(); + QString scmd; + if (volumeName->text().toUtf8().data()[0] == 0) { + QMessageBox::warning(this, "No Volume name", "No Volume name given", + QMessageBox::Ok, QMessageBox::Ok); return; } - - bsnprintf(cmd, sizeof(cmd), - "label volume=\"%s\" pool=\"%s\" storage=\"%s\" slot=%s\n", - volume, pool, storage, slot); - write_director(cmd); - set_text(cmd, strlen(cmd)); -#endif + this->hide(); + scmd = QString("label volume=\"%1\" pool=\"%2\" storage=\"%3\" slot=%4\n") + .arg(volumeName->text()).arg(storageCombo->currentText()) + .arg(poolCombo->currentText()).arg(slotSpin->value()); + printf(scmd.toUtf8().data()); + delete this; } void labelDialog::reject()