Fix #2402 (Get error when I plug in my kindle 2)

This commit is contained in:
Kovid Goyal 2009-05-06 13:43:01 -07:00
parent f9df174fd9
commit 3523ecaf5f

View File

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