From 37983d97ec0eb03845f11eb03f429174acfd327b Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 6 Jun 2017 00:27:24 +0200 Subject: A simplistic security border Still a bit obnoxious and doesn't really convey a whole lot of information. Consider it a stub for now --- framework/src/domain/mime/partmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/src/domain/mime/partmodel.cpp') diff --git a/framework/src/domain/mime/partmodel.cpp b/framework/src/domain/mime/partmodel.cpp index b86251ef..ea3e90e1 100644 --- a/framework/src/domain/mime/partmodel.cpp +++ b/framework/src/domain/mime/partmodel.cpp @@ -151,9 +151,9 @@ QVariant PartModel::data(const QModelIndex &index, int role) const return text; } case IsEncryptedRole: - return messagePart->encryptions().size() > 0; + return messagePart->encryptionState() != MimeTreeParser::KMMsgNotEncrypted; case IsSignedRole: - return messagePart->signatures().size() > 0; + return messagePart->signatureState() != MimeTreeParser::KMMsgNotSigned; case EncryptionErrorType: return messagePart->error(); case EncryptionErrorString: -- cgit v1.2.3