diff ui/administratorwindow.cpp @ 565:9db7034b2d6c

Added method to get the current certificate list changes.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 22 May 2014 18:28:07 +0200
parents ccdc4c6b97ce
children 8728ae882b6a
line wrap: on
line diff
--- a/ui/administratorwindow.cpp	Thu May 22 16:07:02 2014 +0000
+++ b/ui/administratorwindow.cpp	Thu May 22 18:28:07 2014 +0200
@@ -274,3 +274,14 @@
 
     return entries;
 }
+
+QList<Certificate> AdministratorWindow::currentChanges()
+{
+    QList<Certificate> changed;
+    foreach(const Certificate& cert, certificates()) {
+        if (!mCertList.getCertificates().contains(cert)) {
+            changed.append(cert);
+        }
+    }
+    return changed;
+}

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