mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #1172839 (Book Details shows book in library after delete on device)
This commit is contained in:
parent
62aff810ca
commit
31fc648f78
@ -1131,6 +1131,13 @@ class DeviceMixin(object): # {{{
|
||||
# so we don't need to worry about whether some succeeded or not.
|
||||
self.refresh_ondevice(reset_only=False)
|
||||
|
||||
try:
|
||||
if not self.current_view().currentIndex().isValid():
|
||||
self.current_view().set_current_row()
|
||||
self.current_view().refresh_book_details()
|
||||
except:
|
||||
traceback.print_exc()
|
||||
|
||||
def dispatch_sync_event(self, dest, delete, specific):
|
||||
rows = self.library_view.selectionModel().selectedRows()
|
||||
if not rows or len(rows) == 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user