make suspend fact suspend the fact, not the card

This commit is contained in:
Damien Elmes 2008-11-28 15:59:29 +09:00
parent 7577e83c87
commit e16fa4c259

View file

@ -970,7 +970,7 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
self.deck.setModified() self.deck.setModified()
def onSuspend(self): def onSuspend(self):
self.currentCard.tags = addTags("Suspended", self.currentCard.tags) self.currentCard.fact.tags = addTags("Suspended", self.currentCard.fact.tags)
self.deck.updatePriority(self.currentCard) self.deck.updatePriority(self.currentCard)
self.currentCard.setModified() self.currentCard.setModified()
self.deck.setModified() self.deck.setModified()