Fixes #1954562 [Strange search results after updating stored template](https://bugs.launchpad.net/calibre/+bug/1954562)
This commit is contained in:
Kovid Goyal 2021-12-11 19:23:14 +05:30
commit 2a45519e5d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -467,6 +467,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
funcs = compile_user_template_functions(pref_value)
self.db.new_api.set_user_template_functions(funcs)
self.gui.library_view.model().refresh()
self.gui.library_view.model().research()
load_user_template_functions(self.db.library_id, [], funcs)
return False