diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2013-02-17 16:37:39 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2013-02-17 16:37:39 +0000 |
commit | 65cbb5a39d564cad2ab402f33d6014fce50368c9 (patch) | |
tree | c6d9623b7eab58c72ae451d07358f2295771170b /gpgcontext.cpp | |
parent | one more step on notifications (diff) | |
download | gpg4usb-65cbb5a39d564cad2ab402f33d6014fce50368c9.tar.gz gpg4usb-65cbb5a39d564cad2ab402f33d6014fce50368c9.zip |
further steps to get verifydialog done
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@1015 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgcontext.cpp')
-rw-r--r-- | gpgcontext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; } } |