mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix for the problem where setting the restriction to an empty current search clears the restriction box but does not clear the restirction. Fixes #871921 ("Restrict to" criterion sticks after it's been cleared)
This commit is contained in:
commit
cb4aaaef11
@ -37,6 +37,7 @@ class SearchRestrictionMixin(object):
|
|||||||
search = unicode(search)
|
search = unicode(search)
|
||||||
if not search:
|
if not search:
|
||||||
self.search_restriction.setCurrentIndex(0)
|
self.search_restriction.setCurrentIndex(0)
|
||||||
|
self._apply_search_restriction('')
|
||||||
else:
|
else:
|
||||||
s = '*' + search
|
s = '*' + search
|
||||||
if self.search_restriction.count() > 1:
|
if self.search_restriction.count() > 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user