[PATCH] (issue165) Invert manual states. Manual changes are inverted as the action should be the opposite of

Wald Commits scm-commit at wald.intevation.org
Mon Oct 13 13:25:41 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1413199536 -7200
# Node ID fce8c122cbc4cffc3baa95b43263cec2392ab80b
# Parent  2bacaec6e1012ca94d19c4421655974f9082c5ea
(issue165) Invert manual states. Manual changes are inverted as the action should be the opposite of
the state.

diff -r 2bacaec6e101 -r fce8c122cbc4 ui/mainwindow.cpp
--- a/ui/mainwindow.cpp	Mon Oct 13 12:32:13 2014 +0200
+++ b/ui/mainwindow.cpp	Mon Oct 13 13:25:36 2014 +0200
@@ -1471,16 +1471,16 @@
     choices << mUpdatesNew->selectedCertificates();
     choices << mUpdatesRemove->selectedCertificates();
 
-    choices << mUpdatesManual->selectedCertificates();
+    choices << mUpdatesManual->unselectedCertificates();
 
     /* Also include the old certificates */
     choices << mInstallList->selectedCertificates();
     choices << mRemoveList->selectedCertificates();
 
-    QStringList unselectedManuals = mUpdatesManual->unselectedCertificates();
-    for(int i = 0; i < unselectedManuals.size(); i++) {
-        if (unselectedManuals.at(i).startsWith("I:")) {
-            QString certLine = unselectedManuals.at(i);
+    QStringList selectedManuals = mUpdatesManual->selectedCertificates();
+    for(int i = 0; i < selectedManuals.size(); i++) {
+        if (selectedManuals.at(i).startsWith("I:")) {
+            QString certLine = selectedManuals.at(i);
             certLine[0] = 'R';
             choices << certLine;
         }


More information about the Trustbridge-commits mailing list