From b77ab0542103a02318ea725c524cd2180d0e465c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 4 Jul 2012 20:37:38 +0900 Subject: [PATCH] make sure we save tags regardless of where the focus is --- aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/editor.py b/aqt/editor.py index 3c85c6fba..284f3da09 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -579,12 +579,12 @@ class Editor(object): "Must call this before adding cards, closing dialog, etc." if not self.note: return + self.saveTags() if self.mw.app.focusWidget() != self.web: # if no fields are focused, there's nothing to save return # move focus out of fields and save tags self.parentWindow.setFocus() - self.saveTags() # and process events so any focus-lost hooks fire self.mw.app.processEvents()