From bc8b9d511010be5036e5331f8288d88f96b044d8 Mon Sep 17 00:00:00 2001 From: Flavio Lerda Date: Tue, 9 Apr 2013 22:58:04 +0100 Subject: [PATCH] Remove the right hook. The code was removing a hook that was not added, with the result that the hook was not actually being removed. --- aqt/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/browser.py b/aqt/browser.py index 233fc6f52..5e7711934 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -1131,7 +1131,7 @@ update cards set usn=?, mod=?, did=? where id in """ + scids, def teardownHooks(self): remHook("reset", self.onReset) remHook("editTimer", self.refreshCurrentCard) - remHook("editFocusLost", self.refreshCurrentCard) + remHook("editFocusLost", self.refreshCurrentCardFilter) remHook("undoState", self.onUndoState) for t in "newTag", "newModel", "newDeck": remHook(t, self.buildTree)