mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Clear the Book details panel when the current search returns no matches. Fixes #1153026 (Calibre not blanking the book details panel)
This commit is contained in:
parent
62211f4006
commit
941ee89957
@ -94,6 +94,9 @@ class LibraryViewMixin(object): # {{{
|
|||||||
v = self.current_view()
|
v = self.current_view()
|
||||||
if hasattr(v, 'set_current_row'):
|
if hasattr(v, 'set_current_row'):
|
||||||
v.set_current_row(0)
|
v.set_current_row(0)
|
||||||
|
if v is self.library_view and v.row_count() == 0:
|
||||||
|
self.book_details.reset_info()
|
||||||
|
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user