From 03092ab48681abfcdf988e74a815ab5d7307aa83 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 17 Apr 2011 00:11:33 +0900 Subject: [PATCH] only update field name on focus change to prevent erroneous renames --- aqt/clayout.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aqt/clayout.py b/aqt/clayout.py index 403e35813..1ef54efcf 100644 --- a/aqt/clayout.py +++ b/aqt/clayout.py @@ -288,15 +288,13 @@ class CardLayout(QDialog): self.connect(self.form.fieldDown, SIGNAL("clicked()"), self.moveFieldDown) self.connect(self.form.fieldName, SIGNAL("lostFocus()"), - self.fillFieldList) + self.saveField) self.connect(self.form.fontFamily, SIGNAL("currentFontChanged(QFont)"), self.saveField) self.connect(self.form.fontSize, SIGNAL("valueChanged(int)"), self.saveField) self.connect(self.form.fontSizeEdit, SIGNAL("valueChanged(int)"), self.saveField) - self.connect(self.form.fieldName, SIGNAL("textEdited(QString)"), - self.saveField) self.connect(self.form.preserveWhitespace, SIGNAL("stateChanged(int)"), self.saveField) self.connect(self.form.fieldUnique, SIGNAL("stateChanged(int)"),