mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2402 (Get error when I plug in my kindle 2)
This commit is contained in:
parent
f9df174fd9
commit
3523ecaf5f
@ -1060,8 +1060,9 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
|||||||
#############################View book######################################
|
#############################View book######################################
|
||||||
|
|
||||||
def view_format(self, row, format):
|
def view_format(self, row, format):
|
||||||
self._view_file(self.library_view.model().db.format(row,
|
fmt_path = self.library_view.model().db.format_abspath(row, format)
|
||||||
format, as_file=True).name)
|
if fmt_path:
|
||||||
|
self._view_file(fmt_path)
|
||||||
|
|
||||||
def book_downloaded_for_viewing(self, job):
|
def book_downloaded_for_viewing(self, job):
|
||||||
if job.exception:
|
if job.exception:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user