aboutsummaryrefslogtreecommitdiffstats
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-21 16:15:54 +0000
committerSaturneric <[email protected]>2021-05-21 16:15:54 +0000
commit21f4730e92d088c06dea01684f3f736f3f9beff0 (patch)
treec1dc4dc6836903adc688b03cafabc06fc845743f /src/MainWindow.cpp
parentModified KeyList and Add Usage Support; (diff)
downloadGpgFrontend-21f4730e92d088c06dea01684f3f736f3f9beff0.tar.gz
GpgFrontend-21f4730e92d088c06dea01684f3f736f3f9beff0.zip
Expand Key Details Dialog;
Expand and Improve GpgKey and GpgSubKey; Change Interface getKeyDetails(); Code Modified; Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to '')
-rw-r--r--src/MainWindow.cpp12
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);
}
}