Fix #1092304 (Blanking book details on 'email to and delete from library')

This commit is contained in:
Kovid Goyal 2012-12-20 09:48:34 +05:30
parent b8340b0644
commit 1b1e7f85ad

View File

@ -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