Hide hidden label when clearing search results

This commit is contained in:
Kovid Goyal 2020-05-21 21:14:29 +05:30
parent d4b5fbeb28
commit 557bdc6b7e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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')