mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 09:43:48 +02:00
Fix #2402 (Get error when I plug in my kindle 2)
This commit is contained in:
parent
f9df174fd9
commit
3523ecaf5f
1 changed files with 3 additions and 2 deletions
|
|
@ -1060,8 +1060,9 @@ def book_converted(self, job):
|
|||
#############################View book######################################
|
||||
|
||||
def view_format(self, row, format):
|
||||
self._view_file(self.library_view.model().db.format(row,
|
||||
format, as_file=True).name)
|
||||
fmt_path = self.library_view.model().db.format_abspath(row, format)
|
||||
if fmt_path:
|
||||
self._view_file(fmt_path)
|
||||
|
||||
def book_downloaded_for_viewing(self, job):
|
||||
if job.exception:
|
||||
|
|
|
|||
Loading…
Reference in a new issue