summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-06 01:52:54 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-06 01:52:54 (GMT)
commitc53098a6795a485ebbdb21bf15a1df933e63a551 (patch)
tree17ec4f491f1a9b6bd6252d83b7d4f1229215bdf7 /src/declarative
parenta112bbb8d9a5fe204f48e1324771486e8357d7d7 (diff)
downloadQt-c53098a6795a485ebbdb21bf15a1df933e63a551.zip
Qt-c53098a6795a485ebbdb21bf15a1df933e63a551.tar.gz
Qt-c53098a6795a485ebbdb21bf15a1df933e63a551.tar.bz2
Don't lose the URL just because it is an error.
(properties should be orthogonal)
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicswebview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicswebview.cpp b/src/declarative/graphicsitems/qmlgraphicswebview.cpp
index 4ac208c..5ce0ee8 100644
--- a/src/declarative/graphicsitems/qmlgraphicswebview.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicswebview.cpp
@@ -362,7 +362,7 @@ void QmlGraphicsWebView::pageUrlChanged()
expandToWebPage();
if ((d->url.isEmpty() && page()->mainFrame()->url() != QUrl(QLatin1String("about:blank")))
- || d->url != page()->mainFrame()->url())
+ || d->url != page()->mainFrame()->url() && !page()->mainFrame()->url().isEmpty())
{
d->url = page()->mainFrame()->url();
if (d->url == QUrl(QLatin1String("about:blank")))