]> git.sur5r.net Git - bacula/bacula/commitdiff
Grey out the messages combo box and don't include messages in command.
authorDirk H Bartley <dbartley@schupan.com>
Sun, 20 May 2007 15:28:43 +0000 (15:28 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sun, 20 May 2007 15:28:43 +0000 (15:28 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4856 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/run/run.cpp

index 41c5e1673ccb7816ac13130dcdf327acee82dc5b..c4b0bf697de0441ebee152a9580cbf9a1eb15c07 100644 (file)
@@ -63,6 +63,7 @@ runPage::runPage()
       printf("%s\n", mes.toUtf8().data());
    }*/
    messagesCombo->addItems(m_console->messages_list);
+   messagesCombo->setEnabled(false);
    job_name_change(0);
    connect(jobCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(job_name_change(int)));
    connect(okButton, SIGNAL(pressed()), this, SLOT(okButtonPushed()));
@@ -86,19 +87,21 @@ void runPage::okButtonPushed()
       " storage=\"" << storageCombo->currentText() << "\"" <<
       " priority=\"" << prioritySpin->value() << "\""
       " when=\"" << dateTimeEdit->dateTime().toString(mainWin->m_dtformat) << "\"";
+#ifdef xxx
+      " messages=\"" << messagesCombo->currentText() << "\"";
+     /* FIXME when there is an option to modify the messages resoruce associated
+      * with a  job */
+#endif
    if (bootstrap->text() != "") {
       cmd += " bootstrap=\"" + bootstrap->text() + "\""; 
    }
    cmd += " yes";
-//  messagesCombo->currentText().toUtf8().data(); FIXME messages not working
 
    if (mainWin->m_commandDebug) {
       Pmsg1(000, "command : %s\n", cmd.toUtf8().data());
    }
 
-   m_console->write_dir(cmd.toUtf8().data());
-   m_console->display_text(cmd);
-   m_console->displayToPrompt();
+   consoleCommand(cmd);
    m_console->notify(true);
    closeStackPage();
    mainWin->resetFocus();