]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/pages.cpp
Only use the svg files for the generation of the png files.
[bacula/bacula] / bacula / src / qt-console / pages.cpp
index f5de2823841de8fbb7ad4993ed7848a363956e5a..5baff9d4c7ee18704f5b730402709102d456f1b2 100644 (file)
@@ -26,7 +26,7 @@
    Switzerland, email:ftf@fsfeurope.org.
 */
 /*
- *   Version $Id: batstack.cpp 4230 2007-02-21 20:07:37Z kerns $
+ *   Version $Id$
  *
  *   Dirk Bartley, March 2007
  */
@@ -207,9 +207,20 @@ void Pages::consoleCommand(QString &command)
 {
    /*if (!m_console->is_connectedGui())
        return;*/
-   if (!m_console->preventInUseConnect())
+   if (!m_console->preventInUseConnect()) {
        return;
-   /* Bring this directors console to the front of the stack */
+   }
+   consoleInput(command);
+}
+
+/*
+ * Function to simplify executing a console command, but does not
+ *  check for the connection in use.  We need this so that we can
+ *  *always* enter command from the command line.
+ */
+void Pages::consoleInput(QString &command)
+{
+   /* Bring this director's console to the front of the stack */
    setConsoleCurrent();
    QString displayhtml("<font color=\"blue\">");
    displayhtml += command + "</font>\n";