From 32cb8ccf5fb8eb828ad2d623020cdb53d2d0b81e Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sun, 15 Mar 2009 01:12:07 +0000 Subject: [PATCH] The records filled with '*None*' are still there. This is a temporary fix. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8533 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/console/console.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bacula/src/qt-console/console/console.cpp b/bacula/src/qt-console/console/console.cpp index b39299391c..7e4cd70652 100644 --- a/bacula/src/qt-console/console/console.cpp +++ b/bacula/src/qt-console/console/console.cpp @@ -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(); -- 2.39.5