From d85f13eac6fe2b98705179444ec0e909aafa7b86 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sun, 20 May 2007 15:28:43 +0000 Subject: [PATCH] Grey out the messages combo box and don't include messages in command. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4856 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/run/run.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bacula/src/qt-console/run/run.cpp b/bacula/src/qt-console/run/run.cpp index 41c5e1673c..c4b0bf697d 100644 --- a/bacula/src/qt-console/run/run.cpp +++ b/bacula/src/qt-console/run/run.cpp @@ -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(); -- 2.39.5