]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove reference to non-existant variable
authorKern Sibbald <kern@sibbald.com>
Sun, 18 Feb 2007 20:12:11 +0000 (20:12 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 18 Feb 2007 20:12:11 +0000 (20:12 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4204 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/dird_conf.c
bacula/src/qt-console/label/label.cpp

index 301d9b1661457d212b38d60f5e719359f965db82..a7c306ba34b3d27f66b62f72f72cce8caa27386c 100644 (file)
@@ -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}
 };
 
index 4fdd3f1ea5dc3b75f43182971cc0fb9b10e523d4..21b7ef839e5e0f74d8d53892caf3a5fdc0f4bd4b 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "bat.h"
 #include "label.h"
+#include <QMessageBox>
 
 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()