mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
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:
parent
9b0729970e
commit
496e074f29
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue