Revert "hack around broken qwebchannel behaviour"

This reverts commit 447718c605.
This commit is contained in:
Damien Elmes 2016-07-05 12:26:08 +10:00
parent 44bf02d872
commit 2d5affd3f2

View File

@ -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: