Commit 26cca8ef authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile for freebsd on CI as it doesn't use qtwebengine 5.13 with qt

5.13
parent 5962e4d8
......@@ -50,6 +50,7 @@
#include <QWebEngineProfile>
#include <QWebEngineScriptCollection>
#include <QWebEngineUrlRequestInterceptor>
#include <qtwebenginewidgetsversion.h>
#endif
#if HAVE_QTWEBENGINEWIDGETS
......@@ -87,7 +88,7 @@ class ScriptingHtmlDialog : public QDialog {
setLayout(layout);
layout->setContentsMargins(0,0,0,0);
m_webView.settings()->setAttribute(QWebEngineSettings::PluginsEnabled, false);
#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
#if QTWEBENGINEWIDGETS_VERSION < QT_VERSION_CHECK(5, 13, 0)
m_webView.page()->profile()->setRequestInterceptor(new RemoteUrlInterceptor(this));
#else
m_webView.page()->profile()->setUrlRequestInterceptor(new RemoteUrlInterceptor(this));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment