From dfa1c2dab99115a1ad97f4e2e93ac07e2d0705fd Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 22 Aug 2017 20:19:53 -0600 Subject: Install the webengineprofile as singleton This fixes the bug that the main process would hang on exit as long as we have a requestinterceptor installed. It's most likely a bug that this does not work, but the new solution anyways cleans up the code a bit, so that's a nice sideeffect. Fixes T5570 --- components/mailviewer/contents/ui/HtmlContent.qml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/mailviewer') diff --git a/components/mailviewer/contents/ui/HtmlContent.qml b/components/mailviewer/contents/ui/HtmlContent.qml index f864ad02..946bbe37 100644 --- a/components/mailviewer/contents/ui/HtmlContent.qml +++ b/components/mailviewer/contents/ui/HtmlContent.qml @@ -21,6 +21,8 @@ import QtQuick.Controls 1.3 //TODO import QtWebEngine 1.4 import QtWebEngine 1.3 +import org.kube.framework 1.0 as Kube + Item { id: root property string content @@ -66,6 +68,7 @@ Item { autoLoadIconsForPage: false accelerated2dCanvasEnabled: false } + profile: Kube.WebEngineProfile //TODO Disable the context menu (depends on webengine 1.4) // onContextMenuRequested: function(request) { // request.accepted = true -- cgit v1.2.3