From 9b15771d8408fb7a08301778770428e489a897b1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 16 Aug 2010 19:26:50 +0900 Subject: [PATCH] refresh undo options after undo finished --- ankiqt/ui/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index f3aa0c738..75f47ba5e 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -147,6 +147,7 @@ class AnkiQt(QMainWindow): self.mainWin.noticeButton.setFixedWidth(20) self.mainWin.noticeButton.setFixedHeight(20) addHook("cardAnswered", self.onCardAnsweredHook) + addHook("undoEnd", self.maybeEnableUndo) def setNotice(self, str=""): if str: