From: Dirk H Bartley Date: Tue, 3 Mar 2009 00:53:35 +0000 (+0000) Subject: Temporary fix for retrieving recors from the director with *None* as all values. X-Git-Tag: Release-7.0.0~3346 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84cb1781a154a91cf110b5a7698191dc7db6733b;p=bacula%2Fbacula 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 --- 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; } /*