aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-05-04 16:06:54 +0000
committersaturneric <[email protected]>2024-05-04 16:06:54 +0000
commit07ed6ad30b269a4e584259255f6034a95bdd393f (patch)
tree8f56b48f8969a8f6930e2bacadc141e13c14be7d /src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp
parentfeat: update translations (diff)
downloadGpgFrontend-07ed6ad30b269a4e584259255f6034a95bdd393f.tar.gz
GpgFrontend-07ed6ad30b269a4e584259255f6034a95bdd393f.zip
fix: editing subkey expire date of public key ring is forbidden
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 1528b7d8..2a9a4c96 100644
--- a/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp
+++ b/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp
@@ -319,7 +319,7 @@ void KeyPairSubkeyTab::slot_edit_subkey() {
void KeyPairSubkeyTab::slot_revoke_subkey() {}
void KeyPairSubkeyTab::contextMenuEvent(QContextMenuEvent* event) {
- if (!subkey_list_->selectedItems().isEmpty()) {
+ if (key_.IsPrivateKey() && !subkey_list_->selectedItems().isEmpty()) {
subkey_opera_menu_->exec(event->globalPos());
}
}