forget last card when moving to state 'auto'

This commit is contained in:
Damien Elmes 2010-02-02 00:48:47 +09:00
parent 1621092741
commit e9ae61a5fd

View file

@ -281,6 +281,7 @@ Please do not file a bug report with Anki.<br>""")
return self.moveToState("noDeck")
elif state == "auto":
self.currentCard = None
self.lastCard = None
if self.deck:
if self.state == "studyScreen":
return self.moveToState("studyScreen")