From 65cbb5a39d564cad2ab402f33d6014fce50368c9 Mon Sep 17 00:00:00 2001 From: nils Date: Sun, 17 Feb 2013 16:37:39 +0000 Subject: further steps to get verifydialog done git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@1015 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpgcontext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gpgcontext.cpp') diff --git a/gpgcontext.cpp b/gpgcontext.cpp index d2109e2..4ec3e5a 100644 --- a/gpgcontext.cpp +++ b/gpgcontext.cpp @@ -75,6 +75,7 @@ GpgKeyList GpgContext::listKeys() key.expired = false; key.fpr = kkey.fingerprint(); key.id = kkey.id(); + key.fullid = kkey.fullId(); key.name = kkey.name(); key.revoked = false; keys.append(key); @@ -176,11 +177,12 @@ GpgKey GpgContext::getKeyByFpr(QString fpr) { /** * note: privkey status is not returned + * TODO: Long Ids also should be supported */ GpgKey GpgContext::getKeyById(QString id) { foreach (GpgKey key, mKeyList) { - if(key.id == id) { + if(key.id == id || key.fullid == id) { return key; } } -- cgit v1.2.3