summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 }