Skip to content

Commit

Permalink
fix: editing subkey expire date of public key ring is forbidden
Browse files Browse the repository at this point in the history
  • Loading branch information
saturneric committed May 4, 2024
1 parent 44b4c03 commit 07ed6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 07ed6ad

Please sign in to comment.