[PATCH 2 of 2] (Issue 32) Move updates header text generation out of update avialable block

Wald Commits scm-commit at wald.intevation.org
Tue Jul 1 15:44:54 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1404222194 -7200
# Node ID 3151034100027256b91337ef1993a6cb4f7d2f56
# Parent  e4abb41484a068f17c5ceb27f8f4a5643572ee87
(Issue 32) Move updates header text generation out of update avialable block

    This fixes recalculating the available certificate updates after an
    installation was done.

diff -r e4abb41484a0 -r 315103410002 ui/mainwindow.cpp
--- 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())


More information about the Trustbridge-commits mailing list