From 941ee8995794dffe6f77c4c5de2fbe264164a616 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 17 Mar 2013 12:21:45 +0530 Subject: [PATCH] Clear the Book details panel when the current search returns no matches. Fixes #1153026 (Calibre not blanking the book details panel) --- src/calibre/gui2/init.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/init.py b/src/calibre/gui2/init.py index 8c88393d45..eff36e865b 100644 --- a/src/calibre/gui2/init.py +++ b/src/calibre/gui2/init.py @@ -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() + # }}}