summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-05 21:14:37 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-06 17:38:44 +0200
commit0eca2d11a5c32b1c979f0f6f662edff80130a65a (patch)
tree13b40afc410996524eb10e351a4cab84e6fbcfa0
parenta3ae0b4120adfd0c08e0b3d44bbf6ed435f2c2b4 (diff)
downloadkube-0eca2d11a5c32b1c979f0f6f662edff80130a65a.tar.gz
kube-0eca2d11a5c32b1c979f0f6f662edff80130a65a.zip
Handle navigation requests from qml.
Meaning we no longer need the custom profile.
-rw-r--r--components/mailviewer/qml/HtmlContent.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/mailviewer/qml/HtmlContent.qml b/components/mailviewer/qml/HtmlContent.qml
index aa9c5e9a..1efa7d60 100644
--- a/components/mailviewer/qml/HtmlContent.qml
+++ b/components/mailviewer/qml/HtmlContent.qml
@@ -53,7 +53,9 @@ Item {
53 console.debug("Link hovered ", hoveredUrl) 53 console.debug("Link hovered ", hoveredUrl)
54 } 54 }
55 onNavigationRequested: { 55 onNavigationRequested: {
56 console.debug("Nav request ", request) 56 console.debug("Nav request ", request, request.url)
57 Qt.openUrlExternally(request.url)
58 request.action = WebEngineNavigationRequest.IgnoreRequest
57 } 59 }
58 onNewViewRequested: { 60 onNewViewRequested: {
59 console.debug("New view request ", request, request.requestedUrl) 61 console.debug("New view request ", request, request.requestedUrl)
@@ -83,7 +85,6 @@ Item {
83 //The webview should not steal focus 85 //The webview should not steal focus
84 focusOnNavigationEnabled: false 86 focusOnNavigationEnabled: false
85 } 87 }
86 profile: Kube.WebEngineProfile
87 onContextMenuRequested: function(request) { 88 onContextMenuRequested: function(request) {
88 request.accepted = true 89 request.accepted = true
89 } 90 }