mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02: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):
|
||||
if not self.note:
|
||||
return True
|
||||
for f in self.note.fields:
|
||||
if f:
|
||||
m = self.note.model()
|
||||
for c, f in enumerate(self.note.fields):
|
||||
if f and not m['flds'][c]['sticky']:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in a new issue