changeset 394:7e0a188d6848

Load the last certificate list from data dir on startup.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 15 Apr 2014 16:43:45 +0200
parents 1220b741cd51
children a63601810211
files ui/administratorwindow.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ui/administratorwindow.cpp	Tue Apr 15 12:45:20 2014 +0200
+++ b/ui/administratorwindow.cpp	Tue Apr 15 16:43:45 2014 +0200
@@ -14,15 +14,20 @@
 #include <QCheckBox>
 #include <QHeaderView>
 #include <QFileDialog>
+#include <QStandardPaths>
 
 #include "certificatetabledelegate.h"
 #include "createinstallerdialog.h"
 #include "createcertlistdialog.h"
 
 AdministratorWindow::AdministratorWindow() {
+    QString path = QStandardPaths::locate(
+        QStandardPaths::DataLocation, QString("certlist_last.txt"));
+    certList.readList(path.toLocal8Bit());
     createActions();
     createMenuBar();
     createContent();
+    loadCertificateTable();
 }
 
 void AdministratorWindow::createActions()

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