summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebengineprofile.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-09-29 15:41:46 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-09-30 10:38:41 +0000
commit2a972c4046bbee49ec9c770f2c1e12fb95500240 (patch)
tree6231b8ec2257f7cacde2386d7540562f9877e306 /src/webenginewidgets/api/qwebengineprofile.h
parent6a45d22a1f93b8ae6e1ce3fb000f620fa1907e7b (diff)
Fix assert on deleting installed custom URL scheme handler
When the QObject::destroyed signal is emitted the inherited class parts have already been destroyed and thus it is no longer a QWebEngineUrlSchemeHandler and qobject_cast will return 0, which is asserted against. Change-Id: I7130c60a26088067930499a30e0081ed297a92d9 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile.h')
-rw-r--r--src/webenginewidgets/api/qwebengineprofile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.h b/src/webenginewidgets/api/qwebengineprofile.h
index 5532f12ee..82946a223 100644
--- a/src/webenginewidgets/api/qwebengineprofile.h
+++ b/src/webenginewidgets/api/qwebengineprofile.h
@@ -121,7 +121,7 @@ Q_SIGNALS:
void downloadRequested(QWebEngineDownloadItem *download);
private Q_SLOTS:
- void destroyedUrlSchemeHandler(QObject *obj);
+ void destroyedUrlSchemeHandler(QWebEngineUrlSchemeHandler *obj);
private:
Q_DISABLE_COPY(QWebEngineProfile)