mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 16:55:55 +01:00
Fix #1172839 (Book Details shows book in library after delete on device)
This commit is contained in:
parent
62aff810ca
commit
31fc648f78
1 changed files with 7 additions and 0 deletions
|
|
@ -1131,6 +1131,13 @@ def books_deleted(self, job):
|
|||
# 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…
Reference in a new issue