From 30d5a5d604e026ebb551c1a88e8afb30b1acba9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Thu, 27 Oct 2022 15:05:24 +0200 Subject: [PATCH] WebView: Settings property is now actually specific to the view. [GB.QT5.WEBVIEW] * BUG: WebView: Settings property is now actually specific to the view. --- gb.qt5/src/webview/c_websettings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gb.qt5/src/webview/c_websettings.cpp b/gb.qt5/src/webview/c_websettings.cpp index 941d0cb3b..f8f522069 100644 --- a/gb.qt5/src/webview/c_websettings.cpp +++ b/gb.qt5/src/webview/c_websettings.cpp @@ -55,10 +55,10 @@ static void set_cache(bool on) static QWebEngineSettings *get_settings(void *_object) { - //if (GB.Is(_object, GB.FindClass("WebSettings"))) + if (GB.Is(_object, GB.FindClass("WebSettings"))) return QWebEngineSettings::defaultSettings(); - //else - // return WEBVIEW->settings(); + else + return WEBVIEW->page()->profile()->settings(); } //-------------------------------------------------------------------------