Possible fix for Qt 6.3 crashes

As mentioned on #1879, the dialog.deleteLater() call appears to be
causing crashes on some systems on Qt 6.3. Explicitly destroying the page
prior to the containing webview appears to work around the issue.
This commit is contained in:
Damien Elmes 2022-05-25 21:46:47 +10:00
parent 9b0729970e
commit 496e074f29

View file

@ -702,6 +702,7 @@ html {{ {font} }}
gui_hooks.theme_did_change.remove(self.on_theme_did_change)
mw.mediaServer.clear_page_html(id(self))
self._page.deleteLater()
def on_theme_did_change(self) -> None:
# avoid flashes if page reloaded