diff --git a/aqt/main.py b/aqt/main.py index 24ea6d27e..474919f73 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -682,6 +682,8 @@ title="%s" %s>%s''' % ( def onUndo(self): n = self.col.undoName() + if not n: + return cid = self.col.undo() if cid and self.state == "review": card = self.col.getCard(cid)