From b3aaad3d9d640b2a740e2d7988bcc858221a6c8a Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 9 Apr 2018 15:39:49 +0200 Subject: Fix for setCookieFilter signature change in Qt5.11beta3 --- src/browser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/browser.cpp b/src/browser.cpp index e462280..5a35a9e 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -154,8 +154,9 @@ std::shared_ptr Browser::profile(const QString &storageName) } _profile->setRequestInterceptor(m_urlRequestInterceptor); - _profile->cookieStore()->setCookieFilter([this](QWebEngineCookieStore::FilterRequest &request) { - request.accepted = !m_cookieInterceptor->shouldBlock(request); + _profile->cookieStore()->setCookieFilter([this](const QWebEngineCookieStore::FilterRequest &request) { + // If the cookie access is to be accepted, the filter function should return true; otherwise it should return false. + return !m_cookieInterceptor->shouldBlock(request); }); connect(_profile.get(), &WebEngineProfile::downloadRequested, m_downloadManager.get(), &DownloadsWidget::addDownload); -- cgit v1.2.1