aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-04-09 15:39:49 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-04-09 15:39:49 +0200
commitb3aaad3d9d640b2a740e2d7988bcc858221a6c8a (patch)
treeeb5c27783ff3616506e5c518adebdddf4582e758 /src
parentMultithreading UrlRequestInterceptor (diff)
downloadsmolbote-b3aaad3d9d640b2a740e2d7988bcc858221a6c8a.tar.xz
Fix for setCookieFilter signature change in Qt5.11beta3
Diffstat (limited to 'src')
-rw-r--r--src/browser.cpp5
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);