From 9bbf2c1126e9684a8148385069814426e6aebf98 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 30 Nov 2010 04:24:49 +0900 Subject: [PATCH] add rename card template ability --- ankiqt/ui/modelproperties.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/ui/modelproperties.py b/ankiqt/ui/modelproperties.py index 58cb844aa..8119fa53c 100644 --- a/ankiqt/ui/modelproperties.py +++ b/ankiqt/ui/modelproperties.py @@ -67,6 +67,9 @@ class ModelProperties(QDialog): self.renameCard) def renameCard(self): + txt = ui.utils.getText(_("New name?"), parent=self) + if txt[0]: + self.currentCard.name = txt[0] self.needRebuild = True self.updateCards()