[PATCH 3 of 7] Revert commit 1102

Wald Commits scm-commit at wald.intevation.org
Mon Sep 15 19:11:21 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1410795982 -7200
# Node ID 51d3b361f17aff915cbeae8e65b120841d6ebd2c
# Parent  6f7b7d88f0483d34d0ab6338355c436b0153003d
Revert commit 1102

diff -r 6f7b7d88f048 -r 51d3b361f17a ui/mainwindow.cpp
--- a/ui/mainwindow.cpp	Mon Sep 15 17:43:56 2014 +0200
+++ b/ui/mainwindow.cpp	Mon Sep 15 17:46:22 2014 +0200
@@ -1008,11 +1008,11 @@
 {
     Q_UNUSED (selected);
     setChangeCount(mUpdatesRemove->selectedCertCount() +
-        mUpdatesNew->selectedCertCount() + mUpdatesManual->activeCertificates());
+        mUpdatesNew->selectedCertCount() + mUpdatesManual->certificates().size());
 
     /* Show a different tip in case of manual changes, updates aviailable, updates and manual
      * changes available */
-    if (changeCount() && !mUpdatesManual->activeCertificates()) {
+    if (changeCount() && !mUpdatesManual->certificates().size()) {
         mUpdatesTip->setText(
                 tr("You should apply the following, recommended changes to your certificate stores:"));
     } else if (changeCount()) {
@@ -1393,21 +1393,13 @@
         mUpdatesManual->addCertificate(cert, state, actionBtn);
     }
     else {
-        if (cert.isActive()) {
-            mUpdatesManual->deactivateCertificate(cert);
-        } else {
-            mUpdatesManual->activateCertificate(cert);
-        }
+        mUpdatesManual->removeCertificate(cert);
     }
 }
 
 void MainWindow::removeFromManual(bool state, const Certificate &cert)
 {
-    if (cert.isActive()) {
-        mUpdatesManual->deactivateCertificate(cert);
-    } else {
-        mUpdatesManual->activateCertificate(cert);
-    }
+    mUpdatesManual->removeCertificate(cert);
 
     if (cert.isInstallCert()) {
         mInstallList->setCertState(state, cert);


More information about the Trustbridge-commits mailing list