mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Show an error when viewing a specific format and the file is missing. Fixes #1958882 [Format present in metadata, but missing file: clicking on format to open e-book reader does nothing](https://bugs.launchpad.net/calibre/+bug/1958882)
This commit is contained in:
parent
a107534286
commit
51287dae54
@ -148,6 +148,9 @@ class ViewAction(InterfaceAction):
|
|||||||
title = db.title(id_, index_is_id=True)
|
title = db.title(id_, index_is_id=True)
|
||||||
self._view_file(fmt_path, calibre_book_data=self.calibre_book_data(id_, format), open_at=open_at)
|
self._view_file(fmt_path, calibre_book_data=self.calibre_book_data(id_, format), open_at=open_at)
|
||||||
self.update_history([(id_, title)])
|
self.update_history([(id_, title)])
|
||||||
|
else:
|
||||||
|
error_dialog(self.gui, _('E-book file missing'), _(
|
||||||
|
'The {} format file is missing from the calibre library folder').format(format), show=True)
|
||||||
|
|
||||||
def book_downloaded_for_viewing(self, job):
|
def book_downloaded_for_viewing(self, job):
|
||||||
if job.failed:
|
if job.failed:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user