diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-08 20:42:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-08 20:42:31 +0200 |
commit | 9bbb8e460346410866c76754317032bcc51780fe (patch) | |
tree | 91ef52660db4d632b15e90fa55533084f768475d | |
parent | 7c0878889bf65a5f2eb3c31c05818addef2bdcf8 (diff) | |
download | kube-9bbb8e460346410866c76754317032bcc51780fe.tar.gz kube-9bbb8e460346410866c76754317032bcc51780fe.zip |
Fix html detection
-rw-r--r-- | framework/src/domain/mime/partmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/src/domain/mime/partmodel.cpp b/framework/src/domain/mime/partmodel.cpp index 6ee3d46f..d03ae103 100644 --- a/framework/src/domain/mime/partmodel.cpp +++ b/framework/src/domain/mime/partmodel.cpp | |||
@@ -141,7 +141,7 @@ QVariant PartModel::data(const QModelIndex &index, int role) const | |||
141 | //For simple html we don't need a browser | 141 | //For simple html we don't need a browser |
142 | auto complexHtml = [&] { | 142 | auto complexHtml = [&] { |
143 | if (messagePart->isHtml()) { | 143 | if (messagePart->isHtml()) { |
144 | const auto text = messagePart->text(); | 144 | const auto text = messagePart->htmlContent(); |
145 | if (text.contains("<!DOCTYPE html PUBLIC")) { | 145 | if (text.contains("<!DOCTYPE html PUBLIC")) { |
146 | return true; | 146 | return true; |
147 | } | 147 | } |