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:
parent
9dbebf8d33
commit
30d5a5d604
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue