From 48f40c48843478b7e004084618b84ecae1073c2d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 24 May 2013 12:04:28 +0900 Subject: [PATCH] ignore sticky fields when checking if blank (#843) --- aqt/editor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aqt/editor.py b/aqt/editor.py index 1574abd68..c2842f7c6 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -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