]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/select/select.cpp
Fix bat bug that consumes connections + add braces on ifs + rename subroutines
[bacula/bacula] / bacula / src / qt-console / select / select.cpp
index eaa138afda9aaf86cb533726a194e85d97e7c4a8..c1c9c561acc6b6e479fd2bbffdd78a2e793fbaf0 100644 (file)
@@ -49,6 +49,7 @@ selectDialog::selectDialog(Console *console, int conn)
    int row = 0;
 
    m_console = console;
+   m_console->notify(m_conn, false);
    setupUi(this);
    connect(listBox, SIGNAL(currentRowChanged(int)), this, SLOT(index_change(int)));
    setAttribute(Qt::WA_DeleteOnClose);
@@ -116,10 +117,10 @@ yesnoPopUp::yesnoPopUp(Console *console, int conn)
    console->displayToPrompt(conn);
    switch (msgBox.exec()) {
    case QMessageBox::Yes:
-      console->write_dir("yes");
+      console->write_dir(conn, "yes");
       break;
    case QMessageBox::No:
-      console->write_dir("no");
+      console->write_dir(conn, "no");
       break;
    }
    console->displayToPrompt(conn);