aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyUIDSignDialog.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-06-03 20:24:45 +0000
committerSaturneric <[email protected]>2021-06-03 20:24:45 +0000
commit5071d17e6e4cfceffb7c735c7714206dddc688a9 (patch)
treef9fbf5769c472b57021032484a8c0f5508ae4b85 /src/ui/keypair_details/KeyUIDSignDialog.cpp
parentAdd and change the expiration date of the key pair. (diff)
downloadGpgFrontend-5071d17e6e4cfceffb7c735c7714206dddc688a9.tar.gz
GpgFrontend-5071d17e6e4cfceffb7c735c7714206dddc688a9.zip
Add an operation to change the expiration date of the subkey.
Add reminder of expiration of subkey. Fixed the issue of incomplete display of KeyList for past key strikethrough. Improve the expiration prompt for the key pair master key. Add support for the case where the master key does not exist. Add support for the case where the subkey does not exist. Prompt the user when the master key does not exist. Improve the filtering conditions for the key list that meets the key signatures. Fix some spelling errors. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to 'src/ui/keypair_details/KeyUIDSignDialog.cpp')
-rw-r--r--src/ui/keypair_details/KeyUIDSignDialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/keypair_details/KeyUIDSignDialog.cpp b/src/ui/keypair_details/KeyUIDSignDialog.cpp
index 2fe03e26..4ccf51a1 100644
--- a/src/ui/keypair_details/KeyUIDSignDialog.cpp
+++ b/src/ui/keypair_details/KeyUIDSignDialog.cpp
@@ -33,7 +33,7 @@ KeyUIDSignDialog::KeyUIDSignDialog(GpgME::GpgContext *ctx, const GpgKey &key, co
this);
mKeyList->setFilter([](const GpgKey &key) -> bool {
- if(key.disabled || !key.can_sign) return false;
+ if(key.disabled || !key.can_certify || !key.has_master_key || key.expired || key.revoked) return false;
else return true;
});
mKeyList->setExcludeKeys({key.id});