From 3839c635a03b2bb5a50abe1d211d49b06e233740 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 25 Jun 2009 06:47:53 +0900 Subject: [PATCH] don't check if already a leech, since we don't trigger every time --- ankiqt/ui/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 2127c34bc..c58ff0707 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -461,7 +461,6 @@ 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) @@ -470,7 +469,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') and not wasLeech: + if self.deck.getBool('suspendLeeches'): self.deck.suspendCards([self.currentCard.id]) txt += _(" It has been suspended.") self.deck.refresh()