aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/GpgContext.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-06-04 20:37:57 +0000
committerSaturneric <[email protected]>2021-06-04 20:37:57 +0000
commit9581b6799502f88acaccb14407bb1b7143c0ef71 (patch)
tree26b1a7bceeac20abbd47543291c6400bcc2890bc /src/gpg/GpgContext.cpp
parentAdd an operation to change the expiration date of the subkey. (diff)
downloadGpgFrontend-9581b6799502f88acaccb14407bb1b7143c0ef71.tar.gz
GpgFrontend-9581b6799502f88acaccb14407bb1b7143c0ef71.zip
Update the verification function.
Make the format of the generated ciphertext more beautiful. Adjust the width of the key list on the homepage. Add fingerprint display of subkey. Fix the compatibility issue of getKeyByFpr interface subkey. Improve the comprehensiveness of information processing for verification results. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to '')
-rw-r--r--src/gpg/GpgContext.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gpg/GpgContext.cpp b/src/gpg/GpgContext.cpp
index 07e0c8fa..9d1bc083 100644
--- a/src/gpg/GpgContext.cpp
+++ b/src/gpg/GpgContext.cpp
@@ -717,7 +717,7 @@ namespace GpgME {
gpgme_sign_result_t result;
gpgme_sig_mode_t mode;
- if (uidList->count() == 0) {
+ if (uidList->isEmpty()) {
QMessageBox::critical(nullptr, tr("Key Selection"), tr("No Private Key Selected"));
return false;
}
@@ -847,6 +847,12 @@ namespace GpgME {
for (const auto &key : mKeyList) {
if (key.fpr == fpr) {
return key;
+ } else {
+ for(auto &subkey : key.subKeys) {
+ if(subkey.fpr == fpr) {
+ return key;
+ }
+ }
}
}
return GpgKey(nullptr);