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)