From a11035b2fa9a647e0c3fdc84bb891e62acaf1cf0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 6 Aug 2017 15:12:28 +1000 Subject: [PATCH] Revert "fix TypeError: channel.execCallbacks[message.id] is not a function" This reverts commit 331239de05cdb5c734a694f312b7534fd005e0c6. This commit caused the blur event from the editor to fire after the saveNow() callback had run, which broke the reviewer when returning from editcurrent. Reverting for now, as the actual error is harmless AFAICT. --- aqt/webview.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aqt/webview.py b/aqt/webview.py index 9632c2e07..31022ff96 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -63,8 +63,7 @@ class AnkiWebPage(QWebEnginePage): return False def _onCmd(self, str): - from aqt import mw - mw.progress.timer(1, lambda: self._onBridgeCmd(str), False) + self._onBridgeCmd(str) # Main web view ##########################################################################