From 2d5affd3f2677f385b18ab46995c39878cc9cce9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 5 Jul 2016 12:26:08 +1000 Subject: [PATCH] Revert "hack around broken qwebchannel behaviour" This reverts commit 447718c6056cdbff579d7501456a7ba6a7be35d0. --- aqt/webview.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/aqt/webview.py b/aqt/webview.py index 8a8b110ea..97168130d 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -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: