summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/mime/partmodel.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-16 02:46:48 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-16 02:46:48 +0200
commit6054ee4a24193c28bd6160fde555c4a5e1f044a4 (patch)
tree1872898e83eb0871cee1c0d73e0125d24664e814 /framework/src/domain/mime/partmodel.cpp
parentd87ba100ac9d012e13eddbeb460c0a658860311f (diff)
downloadkube-6054ee4a24193c28bd6160fde555c4a5e1f044a4.tar.gz
kube-6054ee4a24193c28bd6160fde555c4a5e1f044a4.zip
Lacking a key to verify the signature is not "bad".
Diffstat (limited to 'framework/src/domain/mime/partmodel.cpp')
-rw-r--r--framework/src/domain/mime/partmodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/src/domain/mime/partmodel.cpp b/framework/src/domain/mime/partmodel.cpp
index bbafbc7c..ca8856fd 100644
--- a/framework/src/domain/mime/partmodel.cpp
+++ b/framework/src/domain/mime/partmodel.cpp
@@ -267,12 +267,12 @@ QVariant PartModel::data(const QModelIndex &index, int role) const
267 267
268 if (messageIsSigned) { 268 if (messageIsSigned) {
269 auto sigInfo = std::unique_ptr<SignatureInfo>{signatureInfo(messagePart)}; 269 auto sigInfo = std::unique_ptr<SignatureInfo>{signatureInfo(messagePart)};
270 if (!sigInfo->signatureIsGood || sigInfo->keyRevoked) { 270 if (!sigInfo->signatureIsGood) {
271 if (sigInfo->keyMissing || sigInfo->keyExpired) {
272 return "notsogood";
273 }
271 return "bad"; 274 return "bad";
272 } 275 }
273 if (sigInfo->keyMissing || sigInfo->keyExpired) {
274 return "notsogood";
275 }
276 } 276 }
277 //All good 277 //All good
278 if (messageIsSigned || messageIsEncrypted) { 278 if (messageIsSigned || messageIsEncrypted) {