Commit 6c3c904a authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Show more decryption details if decryption was successful

This change fixes a logic error/regression introduced with revision
54ae2682c871d24f16177e1b761de3fea46e59ce (in kdepim repo before the
split).

GnuPG-bug-id: 5535
parent cefdbaae
......@@ -557,13 +557,15 @@ static QString formatDecryptionResultDetails(const DecryptionResult &res, const
}
}
if (res.isNull() || !res.error() || res.error().isCanceled()) {
if (!isSigned) {
return details + i18n("<b>Note:</b> You cannot be sure who encrypted this message as it is not signed.");
}
if (res.isNull() || res.error() || res.error().isCanceled()) {
return details;
}
if (!isSigned) {
details += i18n("<b>Note:</b> You cannot be sure who encrypted this message as it is not signed.")
+ QLatin1String("<br/>");
}
if (recipients.empty() && res.numRecipients() > 0) {
return details + QLatin1String("<i>") + i18np("One unknown recipient.", "%1 unknown recipients.", res.numRecipients()) + QLatin1String("</i>");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment