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:
Kovid Goyal 2011-10-11 17:31:18 +05:30
commit cb4aaaef11

View File

@ -37,6 +37,7 @@ class SearchRestrictionMixin(object):
search = unicode(search)
if not search:
self.search_restriction.setCurrentIndex(0)
self._apply_search_restriction('')
else:
s = '*' + search
if self.search_restriction.count() > 1: