aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-19 15:15:56 +0000
committersaturneric <[email protected]>2024-11-19 15:15:56 +0000
commit29b46733fedf884cfac1f77888e9310f30631718 (patch)
treea984e97739ab931c08da6c7cdec42a20921e7476 /src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp
parentfeat: remove unused codes (diff)
downloadGpgFrontend-29b46733fedf884cfac1f77888e9310f30631718.tar.gz
GpgFrontend-29b46733fedf884cfac1f77888e9310f30631718.zip
feat: add ui some restrictions when primary key not exists
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp')
-rw-r--r--src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp b/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp
index ded630e7..ee637abb 100644
--- a/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp
+++ b/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp
@@ -241,7 +241,7 @@ void KeyPairSubkeyTab::slot_refresh_subkey_list() {
}
}
- if (subkey.IsExpired() || subkey.IsRevoked()) {
+ if (subkey.IsExpired() || subkey.IsRevoked() || !subkey.IsSecretKey()) {
for (auto i = 0; i < subkey_list_->columnCount(); i++) {
auto font = subkey_list_->item(row, i)->font();
font.setStrikeOut(true);