mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
only update field name on focus change to prevent erroneous renames
This commit is contained in:
parent
f55c7492fd
commit
03092ab486
1 changed files with 1 additions and 3 deletions
|
@ -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)"),
|
||||
|
|
Loading…
Reference in a new issue