changeset 1308:fce8c122cbc4

(issue165) Invert manual states. Manual changes are inverted as the action should be the opposite of the state.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 13 Oct 2014 13:25:36 +0200
parents 2bacaec6e101
children 32a44cfb78c0
files ui/mainwindow.cpp
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;
         }

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