aboutsummaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-08-02 22:08:46 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-08-02 22:08:46 +0000
commit527a227714538c2aaf4bf37f7593b680b7aea85a (patch)
tree592b3650449f96558a2dc80430a06d675cc36748 /mainwindow.cpp
parentmark private keys works again (diff)
downloadgpg4usb-527a227714538c2aaf4bf37f7593b680b7aea85a.tar.gz
gpg4usb-527a227714538c2aaf4bf37f7593b680b7aea85a.zip
getKeyDetails kind of works
git-svn-id: http://cpunk.de/svn/src/gpg4usb/branches/0.3.2-mac@927 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index a608be8..024fb35 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -875,9 +875,9 @@ void MainWindow::copyMailAddressToClipboard()
return;
}
- gpgme_key_t key = mCtx->getKeyDetails(mKeyList->getSelected()->first());
+ KgpgCore::KgpgKey key = mCtx->getKeyDetails(mKeyList->getSelected()->first());
QClipboard *cb = QApplication::clipboard();
- QString mail = key->uids->email;
+ QString mail = key.email();
cb->setText(mail);
}
@@ -887,8 +887,8 @@ void MainWindow::showKeyDetails()
return;
}
- gpgme_key_t key = mCtx->getKeyDetails(mKeyList->getSelected()->first());
- if (key) {
+ KgpgCore::KgpgKey key = mCtx->getKeyDetails(mKeyList->getSelected()->first());
+ if (key.id() != "") {
new KeyDetailsDialog(mCtx, key, this);
}
}