From ab9acc2b95e2feb240346d27fd07d2380dd0c06b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Jun 2010 10:39:20 -0600 Subject: [PATCH] Fix another regression in the search box --- src/calibre/gui2/search_box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/search_box.py b/src/calibre/gui2/search_box.py index 17a815c4ce..e4de18a132 100644 --- a/src/calibre/gui2/search_box.py +++ b/src/calibre/gui2/search_box.py @@ -100,7 +100,6 @@ class SearchBox2(QComboBox): self.help_state = False def clear_to_help(self): - self.search.emit('') self._in_a_search = False self.setEditText(self.help_text) if self.timer is not None: # Turn off any timers that got started in setEditText @@ -112,6 +111,7 @@ class SearchBox2(QComboBox): 'QLineEdit { color: gray; background-color: %s; }' % self.normal_background) self.emit(SIGNAL('cleared()')) + self.search.emit('') def text(self): return self.currentText()