Revert "hack around broken qwebchannel behaviour"
This reverts commit 447718c605
.
This commit is contained in:
parent
44bf02d872
commit
2d5affd3f2
@ -129,12 +129,6 @@ class AnkiWebView(QWebEngineView):
|
||||
def setHtml(self, html):
|
||||
app = QApplication.instance()
|
||||
oldFocus = app.focusWidget()
|
||||
|
||||
# hack around buggy qt 5.7.0
|
||||
print("fixme: qt 5.7.0 webview hack")
|
||||
self._page = AnkiWebPage(self._onBridgeCmd)
|
||||
self.setPage(self._page)
|
||||
|
||||
self._page.setHtml(html)
|
||||
# work around webengine stealing focus on setHtml()
|
||||
if oldFocus:
|
||||
|
Loading…
Reference in New Issue
Block a user