changeset 691:315103410002

(Issue 32) Move updates header text generation out of update avialable block This fixes recalculating the available certificate updates after an installation was done.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 01 Jul 2014 15:43:14 +0200 (2014-07-01)
parents e4abb41484a0
children 3791a277f00b
files ui/mainwindow.cpp
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Tue Jul 01 15:40:30 2014 +0200
+++ b/ui/mainwindow.cpp	Tue Jul 01 15:43:14 2014 +0200
@@ -882,13 +882,13 @@
                 }
             }
         }
-        mUpdatesHeader->setText("<h2>" +
+    }
+    mUpdatesHeader->setText("<h2>" +
             tr("Updates (%1/%2)")
-                .arg(mUpdatesNew->selectedCertCount() + mUpdatesRemove->selectedCertCount())
-                .arg(newRemoveCerts.size() + newInstallCerts.size()) + "</h2>");
-        mLastCertUpdate->setText(tr("Last update of certificates: %1")
+            .arg(mUpdatesNew->selectedCertCount() + mUpdatesRemove->selectedCertCount())
+            .arg(newRemoveCerts.size() + newInstallCerts.size()) + "</h2>");
+    mLastCertUpdate->setText(tr("Last update of certificates: %1")
             .arg(mInstalledList.date().toString()));
-    }
     mUpdatesNewCertificates->setText("<h3>" +
             tr("Install new trusted certificates (%1/%2)")
             .arg(mUpdatesNew->selectedCertCount())

http://wald.intevation.org/projects/trustbridge/