diff options
Diffstat (limited to 'tests/quicktestbrowser/main.cpp')
-rw-r--r-- | tests/quicktestbrowser/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/quicktestbrowser/main.cpp b/tests/quicktestbrowser/main.cpp index d56841974..45661b5d4 100644 --- a/tests/quicktestbrowser/main.cpp +++ b/tests/quicktestbrowser/main.cpp @@ -80,9 +80,9 @@ int main(int argc, char **argv) Q_ASSERT(index != -1); QMetaProperty thirdPartyCookiesProperty = rootMeta->property(index); profile->cookieStore()->setCookieFilter( - [rootObject,&thirdPartyCookiesProperty](QWebEngineCookieStore::FilterRequest &request) + [rootObject,&thirdPartyCookiesProperty](const QWebEngineCookieStore::FilterRequest &request) { - request.accepted = !request.thirdParty || thirdPartyCookiesProperty.read(rootObject).toBool(); + return !request.thirdParty || thirdPartyCookiesProperty.read(rootObject).toBool(); }); index = rootMeta->indexOfProperty("testProfile"); |