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: