diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/src/domain/mime/partmodel.cpp | 3 |
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"; |