summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-16 12:03:45 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-16 12:03:45 +0200
commit1eecf2f59c340685ef7e3e903958df38a3bc391b (patch)
treeede42646a79a1efe16d3e555f3c9323fe11f712b /framework
parent074ef023c4c3dfd3005c7671c3e025d97aeeeae4 (diff)
downloadkube-1eecf2f59c340685ef7e3e903958df38a3bc391b.tar.gz
kube-1eecf2f59c340685ef7e3e903958df38a3bc391b.zip
More encryption state fixes
Diffstat (limited to 'framework')
-rw-r--r--framework/src/domain/mime/partmodel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/src/domain/mime/partmodel.cpp b/framework/src/domain/mime/partmodel.cpp
index 02ef2f6d..cbb0cb96 100644
--- a/framework/src/domain/mime/partmodel.cpp
+++ b/framework/src/domain/mime/partmodel.cpp
@@ -287,6 +287,9 @@ QVariant PartModel::data(const QModelIndex &index, int role) const
287 auto encryption = messagePart->encryptionState(); 287 auto encryption = messagePart->encryptionState();
288 bool messageIsEncrypted = encryption == MimeTreeParser::KMMsgPartiallyEncrypted || 288 bool messageIsEncrypted = encryption == MimeTreeParser::KMMsgPartiallyEncrypted ||
289 encryption == MimeTreeParser::KMMsgFullyEncrypted; 289 encryption == MimeTreeParser::KMMsgFullyEncrypted;
290 if (messagePart->error()) {
291 return "bad";
292 }
290 //All good 293 //All good
291 if (messageIsEncrypted) { 294 if (messageIsEncrypted) {
292 return "good"; 295 return "good";