From 84cb1781a154a91cf110b5a7698191dc7db6733b Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Tue, 3 Mar 2009 00:53:35 +0000 Subject: [PATCH] Temporary fix for retrieving recors from the director with *None* as all values. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8498 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/restore/prerestore.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bacula/src/qt-console/restore/prerestore.cpp b/bacula/src/qt-console/restore/prerestore.cpp index 2243da2a94..4bad5f3f92 100644 --- a/bacula/src/qt-console/restore/prerestore.cpp +++ b/bacula/src/qt-console/restore/prerestore.cpp @@ -251,7 +251,10 @@ int prerestorePage::jobdefsFromJob(QStringList &fieldlist, QString &jobId) fieldlist = resultline.split("\t"); } /* foreach resultline */ } /* if results from query */ - return results.count(); + + /* FIXME This should not be getting more than one ever */ + if(results.count() >= 1) return 1; + else return 0; } /* -- 2.39.5