Verified Commit 52483af5 authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Ingo Klöcker
Browse files

Properly report a canceled sign and/or encrypt operation

Previously, nothing (for sign) or success (for encrypt) was reported
if the user canceled the operations.

GnuPG-bug-id: 6196
parent c2a59896
......@@ -222,7 +222,7 @@ static QString makeResultDetails(const SigningResult &result, const QString &inp
}
}
if (err) {
if (err || err.isCanceled()) {
return QString::fromLocal8Bit(err.asString()).toHtmlEscaped();
}
return QString();
......@@ -239,7 +239,7 @@ static QString makeResultDetails(const EncryptionResult &result, const QString &
}
}
if (err) {
if (err || err.isCanceled()) {
return QString::fromLocal8Bit(err.asString()).toHtmlEscaped();
}
return i18n(" Encryption succeeded.");
......
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