replace deprecated QWebEngineProfile::setRequestInterceptor

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2022-05-22 22:29:36 +02:00 committed by Matthieu Gallien
parent 249e0eb87d
commit ee245f26c8

View file

@ -86,7 +86,7 @@ WebView::WebView(QWidget *parent)
const QString userAgent(Utility::userAgentString());
_profile->setHttpUserAgent(userAgent);
QWebEngineProfile::defaultProfile()->setHttpUserAgent(userAgent);
_profile->setRequestInterceptor(_interceptor);
_profile->setUrlRequestInterceptor(_interceptor);
_profile->installUrlSchemeHandler("nc", _schemeHandler);
/*