Commit 4b01a60a authored by Rolf Eike Beer's avatar Rolf Eike Beer

do not set subkey fingerprint as key fingerprint

In case GnuPG has the option "with-subkey-fingerprints" configured by default
these will show up also in the normal key listing. In this case currentSNode
will never be set, which resulted in these fingerprints overwriting the actual
key fingerprint.

BUG:367689
FIXED-IN:16.08.2
parent 3fe3e6c8
......@@ -192,7 +192,7 @@ readPublicKeysProcess(GPGProc &p, KGpgKeyNode *readNode)
if ((currentSNode != Q_NULLPTR) && (currentSNode->getType() == ITYPE_SUB))
static_cast<KGpgSubkeyNode *>(currentSNode)->setFingerprint(fingervalue);
else
else if (publickey->fingerprint().isEmpty())
publickey->setFingerprint(fingervalue);
} else if (publickey && (lsp.at(0) == QLatin1String( "sub" )) && (items >= 7)) {
KgpgSubKeyType subtype;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment