mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Hide hidden label when clearing search results
This commit is contained in:
parent
d4b5fbeb28
commit
557bdc6b7e
@ -544,6 +544,8 @@ class Results(QTreeWidget): # {{{
|
|||||||
r = current.data(0, Qt.UserRole)
|
r = current.data(0, Qt.UserRole)
|
||||||
if isinstance(r, SearchResult):
|
if isinstance(r, SearchResult):
|
||||||
self.current_result_changed.emit(r)
|
self.current_result_changed.emit(r)
|
||||||
|
else:
|
||||||
|
self.current_result_changed.emit(None)
|
||||||
|
|
||||||
def add_result(self, result):
|
def add_result(self, result):
|
||||||
section_title = _('Unknown')
|
section_title = _('Unknown')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user