]> git.sur5r.net Git - bacula/bacula/commitdiff
Apply batfix bat cleanup patch from Riccardo.
authorKern Sibbald <kern@sibbald.com>
Sun, 11 May 2008 14:38:19 +0000 (14:38 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 11 May 2008 14:38:19 +0000 (14:38 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6948 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/fileset/fileset.cpp
bacula/src/qt-console/joblist/joblist.cpp
bacula/src/qt-console/medialist/medialist.cpp
bacula/src/qt-console/storage/storage.cpp
bacula/technotes-2.1

index ad75dc20ac37647bc57ad8ef0c48e7db28a3bc9f..b1ed4933f7c1d48b7c9e2441dc90f5a7ec2774c3 100644 (file)
@@ -132,7 +132,7 @@ void FileSet::populateTree()
       }
    }
    /* Resize the columns */
-   for (int cnter=1; cnter<headerlist.size(); cnter++) {
+   for (int cnter=0; cnter<headerlist.size(); cnter++) {
       mp_treeWidget->resizeColumnToContents(cnter);
    }
 
index 67d5e084b4bb5df7d33776753927e2994887e26b..dc2495579a57c694b2bd9679521c082c5890f860 100644 (file)
@@ -154,7 +154,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, " 
+   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,"
index ee8a9d3321c50c2ba091354431282a82b1934671..3c80ca9f42c5c92424679e5f436859bce5c2e436 100644 (file)
@@ -79,8 +79,8 @@ void MediaList::populateTree()
 
    QStringList headerlist = (QStringList()
       << "Volume Name" << "Id" << "Status" << "Enabled" << "Bytes" << "Files"
-      << "Jobs" << "Retention" << "Media Type" << "Slot" << "Use Duration"
-      << "Max Jobs" << "Max Files" << "Max Bytes" << "Recycle" << "Enabled"
+      << "Jobs" << "Retention" << "Media Type" << "Slot" << "In Changer" << "Use Duration"
+      << "Max Jobs" << "Max Files" << "Max Bytes" << "Recycle"
       << "RecyclePool" << "Last Written");
    int statusIndex = headerlist.indexOf("Status");
 
@@ -108,10 +108,11 @@ void MediaList::populateTree()
          " Media.Enabled AS Enabled, Media.VolBytes AS Bytes,"
          " Media.VolFiles AS FileCount, Media.VolJobs AS JobCount,"
          " Media.VolRetention AS VolumeRetention, Media.MediaType AS MediaType,"
-         " Media.Slot AS Slot, Media.VolUseDuration AS UseDuration,"
+         " Media.Slot AS Slot, Media.InChanger AS InChanger,"
+        " Media.VolUseDuration AS UseDuration,"
          " Media.MaxVolJobs AS MaxJobs, Media.MaxVolFiles AS MaxFiles,"
          " Media.MaxVolBytes AS MaxBytes, Media.Recycle AS Recycle,"
-         " Media.Enabled AS enabled, Pol.Name AS RecyclePool,"
+         " Pol.Name AS RecyclePool,"
          " Media.LastWritten AS LastWritten"
          " FROM Media"
          " JOIN Pool ON (Media.PoolId=Pool.PoolId)"
index 6e8ffedcb52ef82dee4942c57bc18dbad1de5782..a13f34904e58b8409b3b8d9f2b9ae24364d1ebaa 100644 (file)
@@ -132,7 +132,7 @@ void Storage::populateTree()
       }
    }
    /* Resize the columns */
-   for(int cnter=1; cnter<headerlist.size(); cnter++) {
+   for(int cnter=0; cnter<headerlist.size(); cnter++) {
       mp_treeWidget->resizeColumnToContents(cnter);
    }
 }
index fda3144b4b38c947b2bef7720cc17ab840d9aaaf..95ebf71c0a6918b1f474c7e35c81ac7db35212db 100644 (file)
@@ -3,6 +3,7 @@
 General:
 
 11May08
+kes  Apply batfix bat cleanup patch from Riccardo.
 kes  Make sure we unload the right slot when swapping.
 08May08
 kes  Improve SD reserve debug code.