From: Dirk H Bartley Date: Sun, 5 Aug 2007 17:35:48 +0000 (+0000) Subject: Put job in quotes on command line. X-Git-Tag: Release-7.0.0~5899 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=151e7f32a8e4af2c00c123cb09777c1cca82365d;p=bacula%2Fbacula Put job in quotes on command line. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5287 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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); }