Mod/Web: Use of deprecated not thread-safe setter, use setUrlRequestInterceptor instead.
This commit is contained in:
committed by
Yorik van Havre
parent
4e36cde00a
commit
54aa706145
@@ -433,7 +433,12 @@ BrowserView::BrowserView(QWidget* parent)
|
||||
profile->setCachePath(basePath + QLatin1String("cache"));
|
||||
|
||||
interceptLinks = new WebEngineUrlRequestInterceptor(this);
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
|
||||
profile->setUrlRequestInterceptor(interceptLinks);
|
||||
#else
|
||||
profile->setRequestInterceptor(interceptLinks);
|
||||
#endif
|
||||
|
||||
view->settings()->setAttribute(QWebEngineSettings::AutoLoadIconsForPage, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user