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.
This commit is contained in:
Flavio Lerda 2013-04-09 22:58:04 +01:00
parent 616e731e34
commit bc8b9d5110

View File

@ -1131,7 +1131,7 @@ update cards set usn=?, mod=?, did=? where id in """ + scids,
def teardownHooks(self): def teardownHooks(self):
remHook("reset", self.onReset) remHook("reset", self.onReset)
remHook("editTimer", self.refreshCurrentCard) remHook("editTimer", self.refreshCurrentCard)
remHook("editFocusLost", self.refreshCurrentCard) remHook("editFocusLost", self.refreshCurrentCardFilter)
remHook("undoState", self.onUndoState) remHook("undoState", self.onUndoState)
for t in "newTag", "newModel", "newDeck": for t in "newTag", "newModel", "newDeck":
remHook(t, self.buildTree) remHook(t, self.buildTree)