comparison ui/administratorwindow.cpp @ 529:c81123298387

Also allow cer files,..
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 29 Apr 2014 15:00:38 +0000
parents 9d3880db6ba7
children d7ab9e734317
comparison
equal deleted inserted replaced
528:eb0dde95d1d7 529:c81123298387
158 } 158 }
159 159
160 void AdministratorWindow::addCertificates() 160 void AdministratorWindow::addCertificates()
161 { 161 {
162 QStringList certFiles = QFileDialog::getOpenFileNames( 162 QStringList certFiles = QFileDialog::getOpenFileNames(
163 this, tr("Select certificate"), QDir::homePath(), "*.pem *.der *.crt"); 163 this, tr("Select certificate"), QDir::homePath(), "*.pem *.der *.crt *.cer");
164 for (int i = 0; i < certFiles.size(); i++) { 164 for (int i = 0; i < certFiles.size(); i++) {
165 QString certFile = certFiles.at(i); 165 QString certFile = certFiles.at(i);
166 QList<Certificate> certs = Certificate::fromFileName(certFile); 166 QList<Certificate> certs = Certificate::fromFileName(certFile);
167 addToCertificateTable(certs); 167 addToCertificateTable(certs);
168 } 168 }

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