diff options
author | saturneric <[email protected]> | 2024-11-26 22:04:00 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-26 22:07:04 +0000 |
commit | af776283bd5d50363c8777dbb3524fde417cc368 (patch) | |
tree | a633e2e8161dc7b9048af25d81e284c116e217cc /src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp | |
parent | feat: support eml data decryption (diff) | |
download | GpgFrontend-af776283bd5d50363c8777dbb3524fde417cc368.tar.gz GpgFrontend-af776283bd5d50363c8777dbb3524fde417cc368.zip |
feat: support uid revoke and uid delete operations
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp b/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp index ee637abb..a262c004 100644 --- a/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp +++ b/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp @@ -520,7 +520,7 @@ void KeyPairSubkeyTab::slot_revoke_subkey() { const auto subkeys = key_.GetSubKeys(); QString message = tr("<h3>Revoke Subkey Confirmation</h3><br />" - "<b>KeyID:</b> %1<br />2<br />" + "<b>KeyID:</b> %1<br /><br />" "Revoking a subkey will make it permanently unusable. " "This action is <b>irreversible</b>.<br />" "Are you sure you want to revoke this subkey?") @@ -547,7 +547,10 @@ void KeyPairSubkeyTab::slot_revoke_subkey() { return; } - auto* revocation_options_dialog = new RevocationOptionsDialog(this); + QStringList codes; + codes << tr("0 -> No Reason.") << tr("1 -> This key is no more safe.") + << tr("2 -> Key is outdated.") << tr("3 -> Key is no longer used"); + auto* revocation_options_dialog = new RevocationOptionsDialog(codes, this); connect(revocation_options_dialog, &RevocationOptionsDialog::SignalRevokeOptionAccepted, this, |