Commit 706aad16 authored by Wolfgang Bauer's avatar Wolfgang Bauer
Browse files

Fix size threshold for "big email" codepath

The maximum size supported by QWebEngineView::setContent() is 2 MB, not 2 GB.

BUG: 387061
FIXED-IN: 5.15.0
parent f8e0e213
Pipeline #28866 failed with stage
in 32 minutes and 50 seconds
......@@ -58,7 +58,7 @@ void WebEnginePartHtmlWriter::end()
insertBodyStyle();
mStyleBody.clear();
}
if (data().size() > 2000000000) {
if (data().size() > 2000000) {
qDebug() << " load big message ";
mTempFile = new QTemporaryFile(QDir::tempPath() + QLatin1String("/messageviewer_XXXXXX")+ QLatin1String(".html"));
mTempFile->open();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment