]> git.sur5r.net Git - bacula/bacula/commitdiff
Put job in quotes on command line.
authorDirk H Bartley <dbartley@schupan.com>
Sun, 5 Aug 2007 17:35:48 +0000 (17:35 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sun, 5 Aug 2007 17:35:48 +0000 (17:35 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5287 91ce42f0-d328-0410-95d8-f526ca767f89

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

index 89c43a4cd2617e20d6b8372716ed266ba4d7b904..765039845c8ac075a0b2e2db2e5711a8fd5d803c 100644 (file)
@@ -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);
 }