mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Ensure the QWebEngineProfile has a parent
This commit is contained in:
parent
a3ac8282d4
commit
46c646e49d
@ -170,7 +170,9 @@ class ViewerBridge(Bridge):
|
||||
class WebPage(QWebEnginePage):
|
||||
|
||||
def __init__(self, parent):
|
||||
QWebEnginePage.__init__(self, create_profile(), parent)
|
||||
profile = create_profile()
|
||||
QWebEnginePage.__init__(self, profile, parent)
|
||||
profile.setParent(self)
|
||||
secure_webengine(self, for_viewer=True)
|
||||
self.bridge = ViewerBridge(self)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user