summaryrefslogtreecommitdiffstats
path: root/src/webengine
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2014-01-27 09:10:33 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-28 12:23:24 +0100
commitcf50b2f77f7b0f38c1f3bfd5efe8dbf0a779ecb0 (patch)
treef206b7444540161364a27c6fbb7d8b97b658a25e /src/webengine
parenta963b8ca3f93cef8bfd52d9a716389996bd8fd7a (diff)
Add loadIgnoreEmptyUrl test case to loadUrl QML test.
Change-Id: I56c78aa7e60194888123d372c6dbbb60624856c5 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src/webengine')
-rw-r--r--src/webengine/api/qquickwebengineview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webengine/api/qquickwebengineview.cpp b/src/webengine/api/qquickwebengineview.cpp
index db9ab7d2..b8cc98a3 100644
--- a/src/webengine/api/qquickwebengineview.cpp
+++ b/src/webengine/api/qquickwebengineview.cpp
@@ -341,6 +341,9 @@ QUrl QQuickWebEngineView::url() const
void QQuickWebEngineView::setUrl(const QUrl& url)
{
+ if (url.isEmpty())
+ return;
+
Q_D(QQuickWebEngineView);
d->adapter->load(url);
}