summaryrefslogtreecommitdiffstats
path: root/components/mailviewer/contents/ui/HtmlContent.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-22 20:19:53 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-22 20:19:53 -0600
commitdfa1c2dab99115a1ad97f4e2e93ac07e2d0705fd (patch)
treedf28c8dc60e9718e12093425497268b5021a0a1d /components/mailviewer/contents/ui/HtmlContent.qml
parent2844ef37db4c498f39ba9804483831a27b8aa412 (diff)
downloadkube-dfa1c2dab99115a1ad97f4e2e93ac07e2d0705fd.tar.gz
kube-dfa1c2dab99115a1ad97f4e2e93ac07e2d0705fd.zip
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
Diffstat (limited to 'components/mailviewer/contents/ui/HtmlContent.qml')
-rw-r--r--components/mailviewer/contents/ui/HtmlContent.qml3
1 files changed, 3 insertions, 0 deletions
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
21//TODO import QtWebEngine 1.4 21//TODO import QtWebEngine 1.4
22import QtWebEngine 1.3 22import QtWebEngine 1.3
23 23
24import org.kube.framework 1.0 as Kube
25
24Item { 26Item {
25 id: root 27 id: root
26 property string content 28 property string content
@@ -66,6 +68,7 @@ Item {
66 autoLoadIconsForPage: false 68 autoLoadIconsForPage: false
67 accelerated2dCanvasEnabled: false 69 accelerated2dCanvasEnabled: false
68 } 70 }
71 profile: Kube.WebEngineProfile
69 //TODO Disable the context menu (depends on webengine 1.4) 72 //TODO Disable the context menu (depends on webengine 1.4)
70 // onContextMenuRequested: function(request) { 73 // onContextMenuRequested: function(request) {
71 // request.accepted = true 74 // request.accepted = true