mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
ignore sticky fields when checking if blank (#843)
This commit is contained in:
parent
73b197b3a9
commit
48f40c4884
1 changed files with 3 additions and 2 deletions
|
@ -677,8 +677,9 @@ class Editor(object):
|
||||||
def fieldsAreBlank(self):
|
def fieldsAreBlank(self):
|
||||||
if not self.note:
|
if not self.note:
|
||||||
return True
|
return True
|
||||||
for f in self.note.fields:
|
m = self.note.model()
|
||||||
if f:
|
for c, f in enumerate(self.note.fields):
|
||||||
|
if f and not m['flds'][c]['sticky']:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue