summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-08 20:42:31 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-08 20:42:31 +0200
commit9bbb8e460346410866c76754317032bcc51780fe (patch)
tree91ef52660db4d632b15e90fa55533084f768475d
parent7c0878889bf65a5f2eb3c31c05818addef2bdcf8 (diff)
downloadkube-9bbb8e460346410866c76754317032bcc51780fe.tar.gz
kube-9bbb8e460346410866c76754317032bcc51780fe.zip
Fix html detection
-rw-r--r--framework/src/domain/mime/partmodel.cpp2
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 }