From 151e7f32a8e4af2c00c123cb09777c1cca82365d Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sun, 5 Aug 2007 17:35:48 +0000 Subject: [PATCH] Put job in quotes on command line. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5287 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/jobs/jobs.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/bacula/src/qt-console/jobs/jobs.cpp b/bacula/src/qt-console/jobs/jobs.cpp index 89c43a4cd2..765039845c 100644 --- a/bacula/src/qt-console/jobs/jobs.cpp +++ b/bacula/src/qt-console/jobs/jobs.cpp @@ -211,43 +211,37 @@ void Jobs::currentStackItem() void Jobs::consoleListFiles() { - QString cmd("list files job="); - cmd += m_currentlyselected; + QString cmd = "list files job=\"" + m_currentlyselected + "\""; consoleCommand(cmd); } void Jobs::consoleListVolume() { - QString cmd("list volumes job="); - cmd += m_currentlyselected; + QString cmd = "list volumes job=\"" + m_currentlyselected + "\""; consoleCommand(cmd); } void Jobs::consoleListNextVolume() { - QString cmd("list nextvolume job="); - cmd += m_currentlyselected; + QString cmd = "list nextvolume job=\"" + m_currentlyselected + "\""; consoleCommand(cmd); } void Jobs::consoleEnable() { - QString cmd("enable job="); - cmd += m_currentlyselected; + QString cmd = "enable job=\"" + m_currentlyselected + "\""; consoleCommand(cmd); } void Jobs::consoleDisable() { - QString cmd("disable job="); - cmd += m_currentlyselected; + QString cmd = "disable job=\"" + m_currentlyselected + "\""; consoleCommand(cmd); } void Jobs::consoleCancel() { - QString cmd("cancel job="); - cmd += m_currentlyselected; + QString cmd = "cancel job=\"" + m_currentlyselected + "\""; consoleCommand(cmd); } -- 2.39.5