diff --git a/qt/aqt/gui_hooks.py b/qt/aqt/gui_hooks.py index b5a9ca35c..bc6dd98e7 100644 --- a/qt/aqt/gui_hooks.py +++ b/qt/aqt/gui_hooks.py @@ -350,7 +350,7 @@ class _CardWillShowFilter: self._hooks.remove(filter) raise # legacy support - runFilter("prepareQA", text, card, kind) + text = runFilter("prepareQA", text, card, kind) return text @@ -668,7 +668,7 @@ class _EditorDidUnfocusFieldFilter: self._hooks.remove(filter) raise # legacy support - runFilter("editFocusLost", changed, note, current_field_idx) + changed = runFilter("editFocusLost", changed, note, current_field_idx) return changed @@ -747,7 +747,7 @@ class _EditorWillUseFontForFieldFilter: self._hooks.remove(filter) raise # legacy support - runFilter("mungeEditingFontName", font) + font = runFilter("mungeEditingFontName", font) return font @@ -1287,7 +1287,7 @@ class _StyleDidInitFilter: self._hooks.remove(filter) raise # legacy support - runFilter("setupStyle", style) + style = runFilter("setupStyle", style) return style