diff ui/certificate.cpp @ 352:b0a274f4f9e2

Added setter to certificate to change the install/remove state.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 10 Apr 2014 15:55:47 +0200
parents 64e38886f903
children 5f1494fab517
line wrap: on
line diff
--- a/ui/certificate.cpp	Thu Apr 10 14:14:56 2014 +0200
+++ b/ui/certificate.cpp	Thu Apr 10 15:55:47 2014 +0200
@@ -97,3 +97,13 @@
     }
     return ret;
 }
+
+void Certificate::setInstallCert(bool install)
+{
+    if (install && mBaseLine.startsWith("R:")) {
+        mBaseLine.replace(0, 1, "I");
+    }
+    else if (!install && mBaseLine.startsWith("I:")) {
+        mBaseLine.replace(0, 1, "R");
+    }
+}

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