Fix for the problem where setting the restriction to an empty current search clears the restriction box but does not clear the restriction.

This commit is contained in:
Charles Haley 2011-10-11 09:39:38 +02:00
parent b3728f7248
commit f21132e16d

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: