mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Preferences->Searching->Clear search histories not taking effect till a restart for some search boxes. Fixes #1956088 [Clear Search Histories not clearing search histories.](https://bugs.launchpad.net/calibre/+bug/1956088)
This commit is contained in:
parent
addec17bb2
commit
21ee73763a
@ -164,6 +164,7 @@ class SearchBox2(QComboBox): # {{{
|
|||||||
|
|
||||||
def clear_history(self):
|
def clear_history(self):
|
||||||
config[self.opt_name] = []
|
config[self.opt_name] = []
|
||||||
|
super().clear()
|
||||||
self.clear()
|
self.clear()
|
||||||
clear_search_history = clear_history
|
clear_search_history = clear_history
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user