Permalink
Browse files

Don't access QWES.globalSettings() on module-level

Otherwise we implicitly create a webengine context, which means setting
QTWEBENGINE_REMOTE_DEBUGGING won't work anymore.
  • Loading branch information...
The-Compiler committed Aug 3, 2016
1 parent 614893b commit 61e0c8327a6329b3de49018679aa305442df1e82
@@ -36,23 +36,23 @@
class Attribute(websettings.Attribute):
GLOBAL_SETTINGS = QWebEngineSettings.globalSettings()
GLOBAL_SETTINGS = QWebEngineSettings.globalSettings
ENUM_BASE = QWebEngineSettings
class Setter(websettings.Setter):
GLOBAL_SETTINGS = QWebEngineSettings.globalSettings()
GLOBAL_SETTINGS = QWebEngineSettings.globalSettings
class NullStringSetter(websettings.NullStringSetter):
GLOBAL_SETTINGS = QWebEngineSettings.globalSettings()
GLOBAL_SETTINGS = QWebEngineSettings.globalSettings
class StaticSetter(websettings.StaticSetter):
GLOBAL_SETTINGS = QWebEngineSettings.globalSettings()
GLOBAL_SETTINGS = QWebEngineSettings.globalSettings
def update_settings(section, option):
@@ -34,23 +34,23 @@
class Attribute(websettings.Attribute):
GLOBAL_SETTINGS = QWebSettings.globalSettings()
GLOBAL_SETTINGS = QWebSettings.globalSettings
ENUM_BASE = QWebSettings
class Setter(websettings.Setter):
GLOBAL_SETTINGS = QWebSettings.globalSettings()
GLOBAL_SETTINGS = QWebSettings.globalSettings
class NullStringSetter(websettings.NullStringSetter):
GLOBAL_SETTINGS = QWebSettings.globalSettings()
GLOBAL_SETTINGS = QWebSettings.globalSettings
class StaticSetter(websettings.StaticSetter):
GLOBAL_SETTINGS = QWebSettings.globalSettings()
GLOBAL_SETTINGS = QWebSettings.globalSettings
class CookiePolicy(websettings.Base):
@@ -48,7 +48,7 @@ def _get_settings(self, settings):
the global instance.
"""
if settings is None:
return self.GLOBAL_SETTINGS
return self.GLOBAL_SETTINGS()
else:
return settings

0 comments on commit 61e0c83

Please sign in to comment.