mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
update card model fields when focus lost
This commit is contained in:
parent
87195130c6
commit
b6e3f8386e
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue