diff options
author | saturneric <[email protected]> | 2025-04-24 17:28:41 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-24 17:37:32 +0000 |
commit | 74d6027016d1323774db25ed73ad8532e39b1e6d (patch) | |
tree | 26341ae75511d186d2315f56b0601aa21c555b14 /src/ui/dialog/keypair_details/KeyPairUIDTab.cpp | |
parent | fix: wayland support of AppImage (diff) | |
download | GpgFrontend-74d6027016d1323774db25ed73ad8532e39b1e6d.tar.gz GpgFrontend-74d6027016d1323774db25ed73ad8532e39b1e6d.zip |
fix: should allow uid sign by the public key
Diffstat (limited to '')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyPairUIDTab.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp b/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp index bc9e422c..9e81fae6 100644 --- a/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp +++ b/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp @@ -431,16 +431,17 @@ void KeyPairUIDTab::create_uid_popup_menu() { if (m_key_->IsHasMasterKey()) { uid_popup_menu_->addAction(set_primary_uid_act_); - uid_popup_menu_->addAction(sign_uid_act_); uid_popup_menu_->addAction(rev_uid_act_); uid_popup_menu_->addAction(del_uid_act_); } + + uid_popup_menu_->addAction(sign_uid_act_); } void KeyPairUIDTab::contextMenuEvent(QContextMenuEvent* event) { if (uid_list_->selectedItems().length() > 0 && sig_list_->selectedItems().isEmpty()) { - auto is_primary_uid = + const auto is_primary_uid = get_selected_uid().GetUID() == buffered_uids_.front().GetUID(); set_primary_uid_act_->setDisabled(is_primary_uid); rev_uid_act_->setDisabled(is_primary_uid); |