From 2b34f1f653e1a6a8d0595317f722d9f4991e0cb9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 4 Feb 2011 19:17:41 +0900 Subject: [PATCH] update tags when template renamed --- ankiqt/ui/modelproperties.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/ui/modelproperties.py b/ankiqt/ui/modelproperties.py index 78344fbbf..4e330bc8b 100644 --- a/ankiqt/ui/modelproperties.py +++ b/ankiqt/ui/modelproperties.py @@ -71,6 +71,9 @@ class ModelProperties(QDialog): if txt[0]: self.currentCard.name = txt[0] self.needRebuild = True + self.deck.updateCardTags(self.deck.s.column0( + "select id from cards where cardModelId = :id", + id=self.currentCard.id)) self.updateCards() def updateCards(self, row = None):