Pass the current row to refresh_ids so that the book_data signal is emitted.

This commit is contained in:
Charles Haley 2014-02-26 12:11:21 +01:00
parent deea793c21
commit cab3cba813

View File

@ -1888,10 +1888,11 @@ class DeviceMixin(object): # {{{
try: try:
prints('DeviceJob: set_books_in_library refreshing GUI for ', prints('DeviceJob: set_books_in_library refreshing GUI for ',
len(self.sbil_book_ids_to_refresh), 'books') 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: except:
# This shouldn't ever happen, but just in case ... # This shouldn't ever happen, but just in case ...
pass traceback.print_exc()
if DEBUG: if DEBUG:
prints('DeviceJob: set_books_in_library finished: time=', prints('DeviceJob: set_books_in_library finished: time=',