mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Pass the current row to refresh_ids so that the book_data signal is emitted.
This commit is contained in:
parent
deea793c21
commit
cab3cba813
@ -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=',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user