From 1eecf2f59c340685ef7e3e903958df38a3bc391b Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 16 Jul 2018 12:03:45 +0200 Subject: More encryption state fixes --- framework/src/domain/mime/partmodel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'framework') 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 auto encryption = messagePart->encryptionState(); bool messageIsEncrypted = encryption == MimeTreeParser::KMMsgPartiallyEncrypted || encryption == MimeTreeParser::KMMsgFullyEncrypted; + if (messagePart->error()) { + return "bad"; + } //All good if (messageIsEncrypted) { return "good"; -- cgit v1.2.3