summaryrefslogtreecommitdiff
path: root/src/webengine/api/qquickwebengineprofile.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2020-08-28 09:35:24 +0200
committerMichal Klocek <michal.klocek@qt.io>2020-11-18 19:03:23 +0100
commit739e276c67d08a156ba426f12094f3d08515d56a (patch)
tree40dbe11cfaeb50f40f22050338419ec5c7e934e8 /src/webengine/api/qquickwebengineprofile.cpp
parent6e81c97c32974cb761687dfb3afd3d5fa4944397 (diff)
downloadqtwebengine-739e276c67d08a156ba426f12094f3d08515d56a.tar.gz
Drop dependency on page in profile
Change-Id: Idbec1657522272c895dc1822e83e0d9592c33343 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/webengine/api/qquickwebengineprofile.cpp')
-rw-r--r--src/webengine/api/qquickwebengineprofile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webengine/api/qquickwebengineprofile.cpp b/src/webengine/api/qquickwebengineprofile.cpp
index c264a73f9..9e848691b 100644
--- a/src/webengine/api/qquickwebengineprofile.cpp
+++ b/src/webengine/api/qquickwebengineprofile.cpp
@@ -251,9 +251,9 @@ void QQuickWebEngineProfilePrivate::downloadRequested(DownloadItemInfo &info)
info.savePageFormat);
itemPrivate->isSavePageDownload = info.isSavePageDownload;
if (info.page && info.page->clientType() == QtWebEngineCore::WebContentsAdapterClient::QmlClient)
- itemPrivate->page = static_cast<QQuickWebEngineViewPrivate *>(info.page)->q_ptr;
+ itemPrivate->m_adapterClient = info.page;
else
- itemPrivate->page = nullptr;
+ itemPrivate->m_adapterClient = nullptr;
QWebEngineDownloadRequest *download = new QWebEngineDownloadRequest(itemPrivate, q);