summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-28 15:16:20 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-28 15:16:20 +0200
commit22263c70fc21cb462fb256b7478a85465d292b65 (patch)
treeaf57892b9155b4e56793768b1bb0eec25632bac5
parent0a531922cd2f04eaa3d1c8b53d3d9b5d681b6eb7 (diff)
downloadkube-22263c70fc21cb462fb256b7478a85465d292b65.tar.gz
kube-22263c70fc21cb462fb256b7478a85465d292b65.zip
The text view doesn't render blockquotes in a very useful way (no
sidebar or anything) ...so we fall back to a browser...
-rw-r--r--framework/src/domain/mime/partmodel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/src/domain/mime/partmodel.cpp b/framework/src/domain/mime/partmodel.cpp
index 79e83480..6a0b4de2 100644
--- a/framework/src/domain/mime/partmodel.cpp
+++ b/framework/src/domain/mime/partmodel.cpp
@@ -216,6 +216,10 @@ QVariant PartModel::data(const QModelIndex &index, int role) const
216 return true; 216 return true;
217 } 217 }
218 } 218 }
219 //Blockquotes don't support any styling which would be necessary so they become readable.
220 if (text.contains("blockquote")) {
221 return true;
222 }
219 //Media queries are too advanced 223 //Media queries are too advanced
220 if (text.contains("@media")) { 224 if (text.contains("@media")) {
221 return true; 225 return true;