diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-06 00:27:24 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-06 00:27:24 +0200 |
commit | 37983d97ec0eb03845f11eb03f429174acfd327b (patch) | |
tree | 9dbb5cdf8bbc463b43d38f45353b80b0f8ad7fe7 /framework/src/domain/mime/partmodel.cpp | |
parent | e98793cb59a1f29fe3b6980e0af3a48ed049024d (diff) | |
download | kube-37983d97ec0eb03845f11eb03f429174acfd327b.tar.gz kube-37983d97ec0eb03845f11eb03f429174acfd327b.zip |
A simplistic security border
Still a bit obnoxious and doesn't really convey a whole lot of
information. Consider it a stub for now
Diffstat (limited to 'framework/src/domain/mime/partmodel.cpp')
-rw-r--r-- | framework/src/domain/mime/partmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
151 | return text; | 151 | return text; |
152 | } | 152 | } |
153 | case IsEncryptedRole: | 153 | case IsEncryptedRole: |
154 | return messagePart->encryptions().size() > 0; | 154 | return messagePart->encryptionState() != MimeTreeParser::KMMsgNotEncrypted; |
155 | case IsSignedRole: | 155 | case IsSignedRole: |
156 | return messagePart->signatures().size() > 0; | 156 | return messagePart->signatureState() != MimeTreeParser::KMMsgNotSigned; |
157 | case EncryptionErrorType: | 157 | case EncryptionErrorType: |
158 | return messagePart->error(); | 158 | return messagePart->error(); |
159 | case EncryptionErrorString: | 159 | case EncryptionErrorString: |