add rename card template ability

This commit is contained in:
Damien Elmes 2010-11-30 04:24:49 +09:00
parent 8835f079d4
commit 9bbf2c1126

View file

@ -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()