diff options
author | Saturneric <[email protected]> | 2021-05-21 16:15:54 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-05-21 16:15:54 +0000 |
commit | 21f4730e92d088c06dea01684f3f736f3f9beff0 (patch) | |
tree | c1dc4dc6836903adc688b03cafabc06fc845743f /src/MainWindow.cpp | |
parent | Modified KeyList and Add Usage Support; (diff) | |
download | GpgFrontend-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.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); } } |