mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:34:27 +02:00
...
This commit is contained in:
parent
ae9fcef788
commit
1063a52c12
1 changed files with 3 additions and 2 deletions
|
|
@ -106,10 +106,11 @@ def normalize_state(self):
|
|||
def text(self):
|
||||
return self.currentText()
|
||||
|
||||
def clear(self, emit_search=False):
|
||||
def clear(self, emit_search=True):
|
||||
self.normalize_state()
|
||||
self.setEditText('')
|
||||
self.search.emit('')
|
||||
if emit_search:
|
||||
self.search.emit('')
|
||||
self._in_a_search = False
|
||||
self.cleared.emit()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue