summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@intevation.de>2016-11-15 08:38:29 (GMT)
committerAndre Heinecke <aheinecke@intevation.de>2016-11-15 08:44:06 (GMT)
commit78c63320d294e640e1518daf9046a11b8e289887 (patch)
tree8314e43242c3944936c79fcb522a9e746e21fb89
parent8737ae1c67ef13d9469676fc5d0f9a14db5fbf13 (diff)
Fix key generationv16.11.80
pgp() returns true or false if pgp should be used. Comparing it to the value of OpenPGP lead to inverted results.
-rw-r--r--src/newcertificatewizard/newcertificatewizard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newcertificatewizard/newcertificatewizard.cpp b/src/newcertificatewizard/newcertificatewizard.cpp
index ea0810a..ae72504 100644
--- a/src/newcertificatewizard/newcertificatewizard.cpp
+++ b/src/newcertificatewizard/newcertificatewizard.cpp
@@ -780,7 +780,7 @@ public:
private:
void startJob()
{
- const auto proto = (pgp() == OpenPGP) ? QGpgME::openpgp() : QGpgME::smime();
+ const auto proto = pgp() ? QGpgME::openpgp() : QGpgME::smime();
if (!proto) {
return;
}