diff options
Diffstat (limited to '')
-rw-r--r-- | src/MainWindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index baa3783d..cf100a14 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -855,10 +855,10 @@ void MainWindow::slotCopyMailAddressToClipboard() { if (mKeyList->getSelected()->isEmpty()) { return; } - - gpgme_key_t key = mCtx->getKeyDetails(mKeyList->getSelected()->first()); + GpgKey key; + mCtx->getKeyDetails(mKeyList->getSelected()->first(), key); QClipboard *cb = QApplication::clipboard(); - QString mail = key->uids->email; + QString mail = key.email; cb->setText(mail); } @@ -866,9 +866,9 @@ void MainWindow::slotShowKeyDetails() { if (mKeyList->getSelected()->isEmpty()) { return; } - - gpgme_key_t key = mCtx->getKeyDetails(mKeyList->getSelected()->first()); - if (key) { + GpgKey key; + mCtx->getKeyDetails(mKeyList->getSelected()->first(), key); + if (key.good) { new KeyDetailsDialog(mCtx, key, this); } } |