diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2013-08-19 15:54:07 +0200 |
---|---|---|
committer | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2013-08-20 18:15:51 +0200 |
commit | abd17e1583e8e13b1a46d599fb695c1189550226 (patch) | |
tree | a02498eab55e8aca32f786ddbda6a9e4dff67380 /examples | |
parent | 0c109945af09212f8fc5806831ffe7b1f827804d (diff) |
Let the application sanitize the URL.
Do like the QtQuick example and let the Widgets example use urlFromUserInput
to add a missing http scheme instead of letting QtWebEngine do it.
This is the same behavior as QtWebKit does.
Change-Id: Iac1570523253126e059afb00c3a2ff844e177ff1
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/widgets/widgetsnanobrowser/widgetwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/widgetsnanobrowser/widgetwindow.cpp b/examples/widgets/widgetsnanobrowser/widgetwindow.cpp index 8d19cc2c8..c35d1f756 100644 --- a/examples/widgets/widgetsnanobrowser/widgetwindow.cpp +++ b/examples/widgets/widgetsnanobrowser/widgetwindow.cpp @@ -106,7 +106,7 @@ WidgetWindow::~WidgetWindow() void WidgetWindow::loadAddressFromAddressBar() { - m_webView->load(addressLineEdit->text()); + m_webView->load(urlFromUserInput(addressLineEdit->text())); } void WidgetWindow::setAddressBarUrl(const QUrl& url) |