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:
Kovid Goyal 2013-03-17 12:21:45 +05:30
parent 62211f4006
commit 941ee89957

View File

@ -94,6 +94,9 @@ class LibraryViewMixin(object): # {{{
v = self.current_view()
if hasattr(v, 'set_current_row'):
v.set_current_row(0)
if v is self.library_view and v.row_count() == 0:
self.book_details.reset_info()
# }}}