diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-09 15:39:49 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-04-09 15:39:49 +0200 |
commit | b3aaad3d9d640b2a740e2d7988bcc858221a6c8a (patch) | |
tree | eb5c27783ff3616506e5c518adebdddf4582e758 | |
parent | Multithreading UrlRequestInterceptor (diff) | |
download | smolbote-b3aaad3d9d640b2a740e2d7988bcc858221a6c8a.tar.xz |
Fix for setCookieFilter signature change in Qt5.11beta3
-rw-r--r-- | src/browser.cpp | 5 |
1 files 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<WebEngineProfile> 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); |