]> git.sur5r.net Git - bacula/bacula/commitdiff
The records filled with '*None*' are still there. This is a temporary fix.
authorDirk H Bartley <dbartley@schupan.com>
Sun, 15 Mar 2009 01:12:07 +0000 (01:12 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sun, 15 Mar 2009 01:12:07 +0000 (01:12 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8533 91ce42f0-d328-0410-95d8-f526ca767f89

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

index b39299391c11cd49a0e876169719e839c042428b..7e4cd706521667c3855f3fc8fe31827b33c6bc47 100644 (file)
@@ -323,12 +323,20 @@ bool Console::sql_cmd(const char *query, QStringList &results)
    pm_strcat(cmd, "\"");
    write(cmd.c_str());
    while ((stat = read()) > 0) {
+      bool first = true;
       if (mainWin->m_displayAll) {
          display_text(msg());
          display_text("\n");
       }
       strip_trailing_junk(msg());
-      results << msg();
+      bool doappend = true;
+      if (first) {
+         QString dum = msg();
+         if ((dum.left(6) == "*None*")) doappend = false;
+      }
+      if (doappend)
+         results << msg();
+      first = false;
    }
    notify(true);
    discardToPrompt();