From 1b1e7f85ada755d1d819c6835a7f0f66e6836c1c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 20 Dec 2012 09:48:34 +0530 Subject: [PATCH] Fix #1092304 (Blanking book details on 'email to and delete from library') --- src/calibre/gui2/email.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/email.py b/src/calibre/gui2/email.py index 4ecf28e519..f4164befe6 100644 --- a/src/calibre/gui2/email.py +++ b/src/calibre/gui2/email.py @@ -273,7 +273,10 @@ class EmailMixin(object): # {{{ 5000) if remove: try: + next_id = self.library_view.next_id self.library_view.model().delete_books_by_id(remove) + self.iactions['Remove Books'].library_ids_deleted2(remove, + next_id=next_id) except: import traceback # Probably the user deleted the files, in any case, failing