mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1531 (Can't open Epub made with Indesign)
This commit is contained in:
parent
5744dd1a31
commit
5913cfe35d
@ -512,7 +512,7 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
|
|||||||
self.metadata.show_opf(self.iterator.opf)
|
self.metadata.show_opf(self.iterator.opf)
|
||||||
title = self.iterator.opf.title
|
title = self.iterator.opf.title
|
||||||
if not title:
|
if not title:
|
||||||
title = os.path.splitext(os.path.basename(pathtoebook))
|
title = os.path.splitext(os.path.basename(pathtoebook))[0]
|
||||||
self.action_table_of_contents.setDisabled(not self.iterator.toc)
|
self.action_table_of_contents.setDisabled(not self.iterator.toc)
|
||||||
if self.iterator.toc:
|
if self.iterator.toc:
|
||||||
self.toc_model = TOC(self.iterator.toc)
|
self.toc_model = TOC(self.iterator.toc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user