mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix another regression in the search box
This commit is contained in:
parent
d1a47c2281
commit
ab9acc2b95
@ -100,7 +100,6 @@ class SearchBox2(QComboBox):
|
|||||||
self.help_state = False
|
self.help_state = False
|
||||||
|
|
||||||
def clear_to_help(self):
|
def clear_to_help(self):
|
||||||
self.search.emit('')
|
|
||||||
self._in_a_search = False
|
self._in_a_search = False
|
||||||
self.setEditText(self.help_text)
|
self.setEditText(self.help_text)
|
||||||
if self.timer is not None: # Turn off any timers that got started in setEditText
|
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; }' %
|
'QLineEdit { color: gray; background-color: %s; }' %
|
||||||
self.normal_background)
|
self.normal_background)
|
||||||
self.emit(SIGNAL('cleared()'))
|
self.emit(SIGNAL('cleared()'))
|
||||||
|
self.search.emit('')
|
||||||
|
|
||||||
def text(self):
|
def text(self):
|
||||||
return self.currentText()
|
return self.currentText()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user