From 5913cfe35d3c5bf05d1a46f5aa3c113a1ad43266 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 2 Jan 2009 10:27:00 -0800 Subject: [PATCH] Fix #1531 (Can't open Epub made with Indesign) --- src/calibre/gui2/viewer/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/viewer/main.py b/src/calibre/gui2/viewer/main.py index a1107ca7a5..fedebc66d7 100644 --- a/src/calibre/gui2/viewer/main.py +++ b/src/calibre/gui2/viewer/main.py @@ -512,7 +512,7 @@ class EbookViewer(MainWindow, Ui_EbookViewer): self.metadata.show_opf(self.iterator.opf) title = self.iterator.opf.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) if self.iterator.toc: self.toc_model = TOC(self.iterator.toc)