diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-10-17 23:49:14 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-10-17 23:49:14 +0000 |
commit | d6f1fc5d0165d8cfc03f2f276addaf8bfb48f2b9 (patch) | |
tree | b1dea76f4cf504c3bef580688e11f863591e0664 /keylist.cpp | |
parent | close verifynotification on textchange() (diff) | |
download | gpg4usb-d6f1fc5d0165d8cfc03f2f276addaf8bfb48f2b9.tar.gz gpg4usb-d6f1fc5d0165d8cfc03f2f276addaf8bfb48f2b9.zip |
more visible error if GPG_ERR_BAD_SIGNATURE
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@561 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keylist.cpp')
-rw-r--r-- | keylist.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/keylist.cpp b/keylist.cpp index f93f45f..01ae4dd 100644 --- a/keylist.cpp +++ b/keylist.cpp @@ -122,6 +122,24 @@ GpgKey KeyList::getKeyByFpr(QString fpr) { return key; } + +/** + * note: privkey status is not returned + */ +GpgKey KeyList::getKeyById(QString id) { + GpgKey key; + for (int i = 0; i < mKeyList->rowCount(); i++) { + if (mKeyList->item(i, 4)->text() == id) { + //key.privkey = mKeyList->item(i,1)->text(); + key.id = mKeyList->item(i,4)->text(); + key.name = mKeyList->item(i,2)->text(); + key.email = mKeyList->item(i,3)->text(); + key.fpr = mKeyList->item(i,5)->text(); + } + } + return key; +} + QStringList *KeyList::getChecked() { QStringList *ret = new QStringList(); |