diff ui/administratorwindow.cpp @ 368:f9c98f9e9f76

Show the new dialog on save button click.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 15 Apr 2014 09:44:32 +0200
parents 857ae1ffdd6f
children 9731d28b95af
line wrap: on
line diff
--- a/ui/administratorwindow.cpp	Tue Apr 15 09:43:53 2014 +0200
+++ b/ui/administratorwindow.cpp	Tue Apr 15 09:44:32 2014 +0200
@@ -17,6 +17,7 @@
 
 #include "certificatetabledelegate.h"
 #include "createinstallerdialog.h"
+#include "createcertlistdialog.h"
 
 AdministratorWindow::AdministratorWindow() {
     createActions();
@@ -93,6 +94,7 @@
     // The buttons.
     bottomLayout->setAlignment(Qt::AlignBottom);
     saveButton = new QPushButton(tr("Save"));
+    connect(saveButton, SIGNAL(clicked()), this, SLOT(saveCertificateFile()));
     loadButton = new QPushButton(tr("Load"));
     connect(loadButton, SIGNAL(clicked()), this, SLOT(loadCertificateFile()));
     addButton = new QPushButton(tr("Add"));
@@ -131,6 +133,12 @@
     }
 }
 
+void AdministratorWindow::saveCertificateFile()
+{
+    CreateCertListDialog *dialog = new CreateCertListDialog(this);
+    dialog->show();
+}
+
 void AdministratorWindow::addCertificates()
 {
     QString certFile = QFileDialog::getOpenFileName(

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