diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2009-08-25 09:49:02 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2009-08-25 09:50:30 (GMT) |
commit | 55863a42d80af8f1d8f35e7f43d0171d7f0e9b79 (patch) | |
tree | 5f38a7b6c223daaa97a3df25149119a53bb8b30e /src/declarative/fx/qfxwebview.cpp | |
parent | 48e8644b148fbd6942a44e7492ba9fd7cde703c1 (diff) | |
download | Qt-55863a42d80af8f1d8f35e7f43d0171d7f0e9b79.zip Qt-55863a42d80af8f1d8f35e7f43d0171d7f0e9b79.tar.gz Qt-55863a42d80af8f1d8f35e7f43d0171d7f0e9b79.tar.bz2 |
Don't crash for QFxWebView::setUrl(QUrl)
Diffstat (limited to 'src/declarative/fx/qfxwebview.cpp')
-rw-r--r-- | src/declarative/fx/qfxwebview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxwebview.cpp b/src/declarative/fx/qfxwebview.cpp index 347c9c2..7247837 100644 --- a/src/declarative/fx/qfxwebview.cpp +++ b/src/declarative/fx/qfxwebview.cpp @@ -333,7 +333,7 @@ void QFxWebView::setUrl(const QUrl &url) d->idealwidth>0 ? d->idealwidth : width(), d->idealheight>0 ? d->idealheight : height())); - Q_ASSERT(!url.isRelative()); + Q_ASSERT(url.isEmpty() || !url.isRelative()); if (isComponentComplete()) page()->mainFrame()->load(url); |