]> git.sur5r.net Git - bacula/bacula/commitdiff
Distinct seems to be needed when media is included in the search. Select
authorDirk H Bartley <dbartley@schupan.com>
Mon, 14 May 2007 14:53:35 +0000 (14:53 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Mon, 14 May 2007 14:53:35 +0000 (14:53 +0000)
results came back with 3 records identical.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4782 91ce42f0-d328-0410-95d8-f526ca767f89

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

index a5ddf4ac38bf0b7dc4c49adb1e9ddff79e6a53bf..89ec394333ff6b8098c60d03aaa8d78cabb3e0c3 100644 (file)
@@ -127,7 +127,7 @@ void JobList::populateTable()
    int volumeIndex = volumeComboBox->currentIndex();
    if (volumeIndex != -1)
       m_mediaName = volumeComboBox->itemText(volumeIndex);
-   query += "SELECT Job.Jobid AS Id, Job.Name AS JobName, Client.Name AS Client,"
+   query += "SELECT DISTINCT Job.Jobid AS Id, Job.Name AS JobName, Client.Name AS Client,"
             " Job.Starttime AS JobStart, Job.Type AS JobType,"
             " Job.Level AS BackupLevel, Job.Jobfiles AS FileCount,"
             " Job.JobBytes AS Bytes,"
index 3bc966f3663622e222e7deef178c38851b477067..a042ced364b5d552cc64bac4395bb6379fc5eb64 100644 (file)
@@ -102,7 +102,6 @@ void JobLog::populateText()
       } /* foreach resultline */
       if (resultcount == 0) {
          /* show a message about configuration item */
-         printf("go here\n");
          QMessageBox::warning(this, tr("Bat"),
             tr("There were no results ??  !!!.\n"
 "It is possible you may need to add \"catalog = all\" to the Messages stanza"