summaryrefslogtreecommitdiffstats
path: root/src/core/api/qwebenginedownloadrequest.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/core/api/qwebenginedownloadrequest.cpp
parent6e81c97c32974cb761687dfb3afd3d5fa4944397 (diff)
Drop dependency on page in profile
Change-Id: Idbec1657522272c895dc1822e83e0d9592c33343 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/api/qwebenginedownloadrequest.cpp')
-rw-r--r--src/core/api/qwebenginedownloadrequest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/api/qwebenginedownloadrequest.cpp b/src/core/api/qwebenginedownloadrequest.cpp
index bf4994a64..58f02ee4f 100644
--- a/src/core/api/qwebenginedownloadrequest.cpp
+++ b/src/core/api/qwebenginedownloadrequest.cpp
@@ -170,7 +170,7 @@ QWebEngineDownloadRequestPrivate::QWebEngineDownloadRequestPrivate(QtWebEngineCo
, totalBytes(-1)
, receivedBytes(0)
, isSavePageDownload(false)
- , page(nullptr)
+ , m_adapterClient(nullptr)
{
}
@@ -657,7 +657,9 @@ QString QWebEngineDownloadRequest::interruptReasonString() const
QObject *QWebEngineDownloadRequest::page() const
{
Q_D(const QWebEngineDownloadRequest);
- return d->page;
+ //TODO: come back here when page is in core
+ Q_UNREACHABLE();
+ return nullptr;
}
QWebEngineDownloadRequest::QWebEngineDownloadRequest(QWebEngineDownloadRequestPrivate *p, QObject *parent)