mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 07:06:15 +01: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
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ def apply_text_search_restriction(self, search):
|
|||
search = unicode(search)
|
||||
if not search:
|
||||
self.search_restriction.setCurrentIndex(0)
|
||||
self._apply_search_restriction('')
|
||||
else:
|
||||
s = '*' + search
|
||||
if self.search_restriction.count() > 1:
|
||||
|
|
|
|||
Loading…
Reference in a new issue