diff ui/administratorwindow.cpp @ 566:8728ae882b6a

Added dialog to show the differences before saving a certificate list.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 22 May 2014 18:29:14 +0200
parents 9db7034b2d6c
children 75e39c52aa94
line wrap: on
line diff
--- a/ui/administratorwindow.cpp	Thu May 22 18:28:07 2014 +0200
+++ b/ui/administratorwindow.cpp	Thu May 22 18:29:14 2014 +0200
@@ -27,6 +27,7 @@
 #include "certificatetabledelegate.h"
 #include "createinstallerdialog.h"
 #include "createcertlistdialog.h"
+#include "certificatediffdialog.h"
 #include "aboutdialog.h"
 
 AdministratorWindow::AdministratorWindow() {
@@ -153,8 +154,12 @@
 
 void AdministratorWindow::saveCertificateFile()
 {
-    CreateCertListDialog *dialog = new CreateCertListDialog(this);
-    dialog->show();
+    CertificateDiffDialog *diffDialog = new CertificateDiffDialog(this);
+    int ret = diffDialog->exec();
+    if (ret == QDialog::Accepted) {
+        CreateCertListDialog *dialog = new CreateCertListDialog(this);
+        dialog->show();
+    }
 }
 
 void AdministratorWindow::addCertificates()

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