Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
565:9db7034b2d6c | 566:8728ae882b6a |
---|---|
25 #include <QSortFilterProxyModel> | 25 #include <QSortFilterProxyModel> |
26 | 26 |
27 #include "certificatetabledelegate.h" | 27 #include "certificatetabledelegate.h" |
28 #include "createinstallerdialog.h" | 28 #include "createinstallerdialog.h" |
29 #include "createcertlistdialog.h" | 29 #include "createcertlistdialog.h" |
30 #include "certificatediffdialog.h" | |
30 #include "aboutdialog.h" | 31 #include "aboutdialog.h" |
31 | 32 |
32 AdministratorWindow::AdministratorWindow() { | 33 AdministratorWindow::AdministratorWindow() { |
33 setWindowTitle(tr("TrustBridge Administration")); | 34 setWindowTitle(tr("TrustBridge Administration")); |
34 QString path = QStandardPaths::locate( | 35 QString path = QStandardPaths::locate( |
151 } | 152 } |
152 } | 153 } |
153 | 154 |
154 void AdministratorWindow::saveCertificateFile() | 155 void AdministratorWindow::saveCertificateFile() |
155 { | 156 { |
156 CreateCertListDialog *dialog = new CreateCertListDialog(this); | 157 CertificateDiffDialog *diffDialog = new CertificateDiffDialog(this); |
157 dialog->show(); | 158 int ret = diffDialog->exec(); |
159 if (ret == QDialog::Accepted) { | |
160 CreateCertListDialog *dialog = new CreateCertListDialog(this); | |
161 dialog->show(); | |
162 } | |
158 } | 163 } |
159 | 164 |
160 void AdministratorWindow::addCertificates() | 165 void AdministratorWindow::addCertificates() |
161 { | 166 { |
162 QStringList certFiles = QFileDialog::getOpenFileNames( | 167 QStringList certFiles = QFileDialog::getOpenFileNames( |