# HG changeset patch # User Raimund Renkert # Date 1397638998 -7200 # Node ID e11409381e1663b4df7e8352093e2089a3e011d5 # Parent d481b1d0956fc5f0fa2926d827e66636511ecf6d Changed path for load certificatelist and add certificate. diff -r d481b1d0956f -r e11409381e16 ui/administratorwindow.cpp --- a/ui/administratorwindow.cpp Wed Apr 16 10:08:32 2014 +0200 +++ b/ui/administratorwindow.cpp Wed Apr 16 11:03:18 2014 +0200 @@ -131,8 +131,10 @@ void AdministratorWindow::loadCertificateFile() { + QString path = QStandardPaths::locate( + QStandardPaths::DataLocation, QString("certlist_last.txt")); QString certFile = QFileDialog::getOpenFileName( - this, tr("Select certificate file"), "/home/rrenkert/local-home/projects/m13/src/repo/ui/tests/data/", "*.txt"); + this, tr("Select certificate file"), path, "*.txt"); qDebug() << "selected: " + certFile; certList.readList(certFile.toLocal8Bit().constData()); if (!certList.isValid()) { @@ -153,7 +155,7 @@ void AdministratorWindow::addCertificates() { QString certFile = QFileDialog::getOpenFileName( - this, tr("Select certificate"), "/home/rrenkert/local-home/projects/m13/src/repo/ui/tests/data/", "*.pem *.der"); + this, tr("Select certificate"), QDir::homePath(), "*.pem *.der"); QList certs = Certificate::fromFileName(certFile); addToCertificateTable(certs); }