mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
fix editcurrent not freeing webview on close
This commit is contained in:
parent
bca31bf38b
commit
819d0bdaf3
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ class EditCurrent(QDialog):
|
||||||
addHook("reset", self.onReset)
|
addHook("reset", self.onReset)
|
||||||
self.mw.requireReset()
|
self.mw.requireReset()
|
||||||
self.show()
|
self.show()
|
||||||
# reset focus after open
|
# reset focus after open, taking care not to retain webview
|
||||||
self.mw.progress.timer(100, self.editor.web.setFocus, False)
|
self.mw.progress.timer(100, lambda: self.editor.web.setFocus(), False)
|
||||||
|
|
||||||
def onReset(self):
|
def onReset(self):
|
||||||
# lazy approach for now: throw away edits
|
# lazy approach for now: throw away edits
|
||||||
|
|
Loading…
Reference in a new issue