mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
don't update fields when no change
This commit is contained in:
parent
cf3f448f92
commit
31d06f661f
1 changed files with 2 additions and 0 deletions
|
|
@ -266,6 +266,8 @@ class FactEditor(object):
|
|||
if value and not value.strip():
|
||||
widget.setText("")
|
||||
value = u""
|
||||
if self.fact[field.name] == value:
|
||||
return
|
||||
self.fact[field.name] = value
|
||||
self.fact.setModified(textChanged=True)
|
||||
self.deck.setModified()
|
||||
|
|
|
|||
Loading…
Reference in a new issue