# HG changeset patch
# User Raimund Renkert <rrenkert@intevation.de>
# Date 1397573025 -7200
# Node ID 7e0a188d684899efbea2e62a35aa66fa716f5a74
# Parent  1220b741cd51bc1fcc8620c2e1736dcbd02e54d3
Load the last certificate list from data dir on startup.

diff -r 1220b741cd51 -r 7e0a188d6848 ui/administratorwindow.cpp
--- 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()