mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 13:47:13 -05:00
Revert "hack around broken qwebchannel behaviour"
This reverts commit 447718c605.
This commit is contained in:
parent
44bf02d872
commit
2d5affd3f2
1 changed files with 0 additions and 6 deletions
|
|
@ -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 a new issue