diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-29 12:53:39 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-29 12:53:39 +0200 |
commit | 904c8e08fd3c73174a8b4aadbc45a6895600d2cc (patch) | |
tree | cf2db24c119267fc9ec427a400ccea45edd3c5f9 /components/mailviewer/qml/TextContent.qml | |
parent | 35f4d554203640bc4bf0e072f8f263396100cf52 (diff) | |
download | kube-904c8e08fd3c73174a8b4aadbc45a6895600d2cc.tar.gz kube-904c8e08fd3c73174a8b4aadbc45a6895600d2cc.zip |
Safeguard against too long text
The UI will simply freeze while the textview tries to render.
Diffstat (limited to 'components/mailviewer/qml/TextContent.qml')
-rw-r--r-- | components/mailviewer/qml/TextContent.qml | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
50 | readOnly: true | 50 | readOnly: true |
51 | selectByMouse: true | 51 | selectByMouse: true |
52 | 52 | ||
53 | text: content | 53 | text: content.substring(0, 100000) //The TextEdit deals poorly with messages that are too large. |
54 | wrapMode: TextEdit.Wrap | 54 | wrapMode: TextEdit.Wrap |
55 | textFormat: Text.RichText | 55 | textFormat: Text.RichText |
56 | 56 | ||