aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyUIDSignDialog.cpp
diff options
context:
space:
mode:
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});