From f21132e16d3d7f5ea570611ef3bf776f03d6fec1 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Tue, 11 Oct 2011 09:39:38 +0200 Subject: [PATCH] Fix for the problem where setting the restriction to an empty current search clears the restriction box but does not clear the restriction. --- src/calibre/gui2/search_restriction_mixin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/search_restriction_mixin.py b/src/calibre/gui2/search_restriction_mixin.py index ffebc9e131..1319f8d17d 100644 --- a/src/calibre/gui2/search_restriction_mixin.py +++ b/src/calibre/gui2/search_restriction_mixin.py @@ -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: