[pim/kleopatra] src/crypto: Don't show compliance of decryption for signed-only data
Ingo Klöcker <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit aa0019ef7b90000eab33bc2c3007967f60bdf16f by Ingo Klöcker, on behalf of Ingo Klöcker.
Committed on 28/07/2026 at 14:38.
Pushed by kloecker into branch 'master'.
Don't show compliance of decryption for signed-only data
...or if decryption was canceled.
Regression-due-to: f363ac3cf5739311fc0585fd1853d3f35e1d103e
GnuPG-bug-id: 8367
M +1 -1 src/crypto/decryptverifytask.cpp
https://invent.kde.org/pim/kleopatra/-/commit/aa0019ef7b90000eab33bc2c3007967f60bdf16f
diff --git a/src/crypto/decryptverifytask.cpp b/src/crypto/decryptverifytask.cpp
index bbcf12d94..5e681ad0d 100644
--- a/src/crypto/decryptverifytask.cpp
+++ b/src/crypto/decryptverifytask.cpp
@@ -292,7 +292,7 @@ public:
label += u' ' + Formatting::errorAsString(error) + u'.';
}
- if (!error && DeVSCompliance::isCompliant()) {
+ if (decrypt && error.isSuccess() && DeVSCompliance::isCompliant()) {
label += "<br />"_L1
+ ((m_decryptionResult.isDeVs()
? i18nc("%1 is a placeholder for the name of a compliance mode. E.g. NATO RESTRICTED compliant or VS-NfD compliant",