diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-11 22:42:28 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-11 22:49:59 +0200 |
commit | e331c1cd5fc25e814a849d2db5c0beaf0024a47c (patch) | |
tree | 232bec65b4094a98ba405336ba42c6ae23b42474 /framework/src/domain/mime/partmodel.cpp | |
parent | 37a2512e3cc58722d637471fae950593ccf4ef1d (diff) | |
download | kube-e331c1cd5fc25e814a849d2db5c0beaf0024a47c.tar.gz kube-e331c1cd5fc25e814a849d2db5c0beaf0024a47c.zip |
MessagePart error enum
Diffstat (limited to 'framework/src/domain/mime/partmodel.cpp')
-rw-r--r-- | framework/src/domain/mime/partmodel.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/framework/src/domain/mime/partmodel.cpp b/framework/src/domain/mime/partmodel.cpp index d03ae103..a87a60df 100644 --- a/framework/src/domain/mime/partmodel.cpp +++ b/framework/src/domain/mime/partmodel.cpp | |||
@@ -167,10 +167,6 @@ QVariant PartModel::data(const QModelIndex &index, int role) const | |||
167 | case IsErrorRole: | 167 | case IsErrorRole: |
168 | return messagePart->error(); | 168 | return messagePart->error(); |
169 | case ContentRole: { | 169 | case ContentRole: { |
170 | auto errorText = messagePart->partMetaData()->errorText; | ||
171 | if (!errorText.isEmpty()) { | ||
172 | return errorText; | ||
173 | } | ||
174 | const auto text = messagePart->isHtml() ? messagePart->htmlContent() : messagePart->text(); | 170 | const auto text = messagePart->isHtml() ? messagePart->htmlContent() : messagePart->text(); |
175 | if (messagePart->isHtml()) { | 171 | if (messagePart->isHtml()) { |
176 | return d->mParser->resolveCidLinks(text); | 172 | return d->mParser->resolveCidLinks(text); |