From 380d59f775346be08a8c0f964a86505cc9b9dcaa Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 10 Apr 2019 17:31:55 +1000 Subject: [PATCH] fix race condition in webview startup on windows use _setHtml so that _domDone is set to false --- aqt/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/main.py b/aqt/main.py index 86a2ff4f8..5703d479d 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -609,8 +609,8 @@ title="%s" %s>%s''' % ( # force webengine processes to load before cwd is changed if isWin: - self.web._page.setHtml("") - self.bottomWeb._page.setHtml("") + for o in self.web, self.bottomWeb: + o._setHtml("") def closeAllWindows(self, onsuccess): aqt.dialogs.closeAll(onsuccess)