From cab3cba81379de0f8bf9d26dc3b6e00187f48f9b Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Wed, 26 Feb 2014 12:11:21 +0100 Subject: [PATCH] Pass the current row to refresh_ids so that the book_data signal is emitted. --- src/calibre/gui2/device.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/device.py b/src/calibre/gui2/device.py index 843ccffaa5..f53e9f1d65 100644 --- a/src/calibre/gui2/device.py +++ b/src/calibre/gui2/device.py @@ -1888,10 +1888,11 @@ class DeviceMixin(object): # {{{ try: prints('DeviceJob: set_books_in_library refreshing GUI for ', len(self.sbil_book_ids_to_refresh), 'books') - self.library_view.model().refresh_ids(self.sbil_book_ids_to_refresh) + self.library_view.model().refresh_ids(self.sbil_book_ids_to_refresh, + current_row=self.library_view.currentIndex().row()) except: # This shouldn't ever happen, but just in case ... - pass + traceback.print_exc() if DEBUG: prints('DeviceJob: set_books_in_library finished: time=',