Also clear seach/replace history int he edit metadata dialog when using the Clear search histories button in Preferences->Searching

This commit is contained in:
Kovid Goyal 2017-12-07 16:04:02 +05:30
parent 75b7b476c7
commit 04d2af56f7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -245,6 +245,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
if key.endswith('_search_history') and isinstance(val, list):
config[key] = []
self.gui.search.clear_history()
from calibre.gui2.widgets import history
for key in 'bulk_edit_search_for bulk_edit_replace_with'.split():
history.set('lineedit_history_' + key, [])
if __name__ == '__main__':