WebView: Settings property is now actually specific to the view.

[GB.QT5.WEBVIEW]
* BUG: WebView: Settings property is now actually specific to the view.
This commit is contained in:
Benoît Minisini 2022-10-27 15:05:24 +02:00
parent 9dbebf8d33
commit 30d5a5d604

View file

@ -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();
}
//-------------------------------------------------------------------------