]> git.sur5r.net Git - bacula/bacula/commitdiff
Temporary fix for retrieving recors from the director with *None* as all values.
authorDirk H Bartley <dbartley@schupan.com>
Tue, 3 Mar 2009 00:53:35 +0000 (00:53 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Tue, 3 Mar 2009 00:53:35 +0000 (00:53 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8498 91ce42f0-d328-0410-95d8-f526ca767f89

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

index 2243da2a945e5be55ca5c240a01978797ff8831a..4bad5f3f9225700adf881fd323c2f0e01c67c421 100644 (file)
@@ -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;
 }
 
 /*