mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04: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):
|
def setHtml(self, html):
|
||||||
app = QApplication.instance()
|
app = QApplication.instance()
|
||||||
oldFocus = app.focusWidget()
|
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)
|
self._page.setHtml(html)
|
||||||
# work around webengine stealing focus on setHtml()
|
# work around webengine stealing focus on setHtml()
|
||||||
if oldFocus:
|
if oldFocus:
|
||||||
|
|
Loading…
Reference in a new issue