diff --git a/aqt/webview.py b/aqt/webview.py index 31022ff96..4f1d3c814 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -224,6 +224,11 @@ body { zoom: %f; %s } openLink(url) def _onBridgeCmd(self, cmd): + # ignore webchannel messages that arrive after underlying webview + # deleted + if sip.isdeleted(self): + return + if cmd == "domDone": self._domDone = True # run through any pending js calls