aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_email/EMailSecurityView.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2026-09-13 17:49:16 +0200
committersaturneric <[email protected]>2026-09-13 17:49:16 +0200
commit4e2323ea0f1549cb66eb77aa2491d7ddf0e9c004 (patch)
tree29edaab323bae92de36bc2697c1e073db6174c5a /src/m_email/EMailSecurityView.cpp
parentfeat(email): unify verification result reporting (diff)
downloadmodules-4e2323ea0f1549cb66eb77aa2491d7ddf0e9c004.tar.gz
modules-4e2323ea0f1549cb66eb77aa2491d7ddf0e9c004.zip
fix(email): offer signature verification before retries
- Show verification actions whenever message regions are available - Label the initial action "Verify Signatures" instead of "Verify Again" - Avoid implying verification already occurred when it has not
Diffstat (limited to 'src/m_email/EMailSecurityView.cpp')
-rw-r--r--src/m_email/EMailSecurityView.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/m_email/EMailSecurityView.cpp b/src/m_email/EMailSecurityView.cpp
index 4e1a508..6506d7b 100644
--- a/src/m_email/EMailSecurityView.cpp
+++ b/src/m_email/EMailSecurityView.cpp
@@ -282,13 +282,20 @@ void EMailSecurityView::show_row_menu(const QPoint& pos) {
}
}
- // Only once something has already tried. Before that the tab runs a
- // verification on its own when it is opened, and offering to repeat work
- // that has not happened yet would be a control that means nothing.
+ // Offered whenever there is something to check. Opening this tab no longer
+ // verifies the message behind the user's back -- looking at a message is
+ // not asking for a crypto operation -- so this is where the asking happens,
+ // and a tab that says nothing has verified it yet has to offer the way to.
+ //
+ // The wording follows the state: "again" is a promise that work was already
+ // done, and on a message nothing has checked it would be a lie.
QAction* verify_again = nullptr;
- if (has_regions_ && verify_state_ != EMailVerifyState::kNOT_ATTEMPTED) {
+ if (has_regions_) {
menu.addSeparator();
- verify_again = menu.addAction(tr("Verify Again"));
+ verify_again =
+ menu.addAction(verify_state_ == EMailVerifyState::kNOT_ATTEMPTED
+ ? tr("Verify Signatures")
+ : tr("Verify Again"));
}
auto* chosen = menu.exec(tree_->viewport()->mapToGlobal(pos));