diff options
author | Christian Strømme <christian.stromme@theqtcompany.com> | 2014-12-01 18:21:47 +0100 |
---|---|---|
committer | Christian Stromme <christian.stromme@theqtcompany.com> | 2014-12-05 13:55:11 +0100 |
commit | 4de1518876782dfa58951dfa5a902729bb1ec93d (patch) | |
tree | d21476c47986f7afda31e00c11d16faa8243e2e3 /examples/webview | |
parent | f30405cf4804a4b315698b7fcf53a5f583163f44 (diff) |
Fix crash in minibrowser
This is a workaround for bug QTBUG-42929, which causes QtWebEngine to
crash when going from about:blank to a valid URL in onEditingFinished.
Change-Id: Ia636da841de1e0460630f2ce435fc9fe8e19dabc
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'examples/webview')
-rw-r--r-- | examples/webview/minibrowser/main.qml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/webview/minibrowser/main.qml b/examples/webview/minibrowser/main.qml index 89f918d..7a82ac0 100644 --- a/examples/webview/minibrowser/main.qml +++ b/examples/webview/minibrowser/main.qml @@ -77,9 +77,7 @@ ApplicationWindow { id: urlField inputMethodHints: Qt.ImhUrlCharactersOnly | Qt.ImhPreferLowercase text: webView.url - onEditingFinished: { - webView.url = utils.fromUserInput(urlField.text); - } + onAccepted: webView.url = utils.fromUserInput(text) } ToolButton { |