diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 57b68a67b..556c9fb62 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -459,6 +459,7 @@ Please do not file a bug report with Anki.
""") def handleLeech(self): self.deck.refresh() tags = self.currentCard.fact.tags + wasLeech = "Leech" in tags tags = addTags("Leech", tags) self.currentCard.fact.tags = canonifyTags(tags) self.currentCard.fact.setModified(textChanged=True) @@ -467,7 +468,7 @@ Please do not file a bug report with Anki.
""") %s... is a leech.""") % stripHTML(stripSounds(self.currentCard.question)).\ replace("\n", " ")[0:30]) - if self.deck.getBool('suspendLeeches'): + if self.deck.getBool('suspendLeeches') and not wasLeech: self.deck.suspendCards([self.currentCard.id]) txt += _(" It has been suspended.") self.deck.refresh()