From b6e3f8386eba259fb2c48813b744e33469732c7a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 11 Oct 2008 19:32:35 +0900 Subject: [PATCH] update card model fields when focus lost --- ankiqt/ui/modelproperties.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ankiqt/ui/modelproperties.py b/ankiqt/ui/modelproperties.py index 72ddfc42c..11070c741 100644 --- a/ankiqt/ui/modelproperties.py +++ b/ankiqt/ui/modelproperties.py @@ -63,6 +63,8 @@ class ModelProperties(QDialog): self.moveFieldUp) self.connect(self.dialog.fieldDown, SIGNAL("clicked()"), self.moveFieldDown) + self.connect(self.dialog.fieldName, SIGNAL("lostFocus()"), + self.updateFields) def updateFields(self, row = None): oldRow = self.dialog.fieldList.currentRow() @@ -238,6 +240,8 @@ class ModelProperties(QDialog): self.moveCardUp) self.connect(self.dialog.cardDown, SIGNAL("clicked()"), self.moveCardDown) + self.connect(self.dialog.cardName, SIGNAL("lostFocus()"), + self.updateCards) def updateCards(self, row = None): oldRow = self.dialog.cardList.currentRow()