Skip to content

Commit

Permalink
Supply parents to QtWebEngine objects (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvisscher authored Feb 6, 2024
1 parent 30a81c0 commit 0955df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activity_browser/ui/web/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def __init__(self, parent=None, css_file: str = "", *args, **kwargs):

# Setup JS / Qt interactions
self.bridge = Bridge(self)
self.channel = QtWebChannel.QWebChannel()
self.channel = QtWebChannel.QWebChannel(self)
self.channel.registerObject('bridge', self.bridge)
self.view = QtWebEngineWidgets.QWebEngineView()
self.view = QtWebEngineWidgets.QWebEngineView(self)
self.view.loadFinished.connect(self.load_finished_handler)
self.view.setContextMenuPolicy(Qt.PreventContextMenu)
self.view.page().setWebChannel(self.channel)
Expand Down

0 comments on commit 0955df9

Please sign in to comment.