From 904c8e08fd3c73174a8b4aadbc45a6895600d2cc Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 29 Jun 2018 12:53:39 +0200 Subject: Safeguard against too long text The UI will simply freeze while the textview tries to render. --- components/mailviewer/qml/TextContent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mailviewer/qml/TextContent.qml b/components/mailviewer/qml/TextContent.qml index 114aa1fb..e8a7f6d4 100644 --- a/components/mailviewer/qml/TextContent.qml +++ b/components/mailviewer/qml/TextContent.qml @@ -50,7 +50,7 @@ Item { readOnly: true selectByMouse: true - text: content + text: content.substring(0, 100000) //The TextEdit deals poorly with messages that are too large. wrapMode: TextEdit.Wrap textFormat: Text.RichText -- cgit v1.2.3