mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Ebook viewer:Handle invalid bookmarks more gracefully
This commit is contained in:
parent
0c067c9151
commit
1323f26b83
@ -313,6 +313,8 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
|
|||||||
self.view.goto_bookmark(m)
|
self.view.goto_bookmark(m)
|
||||||
else:
|
else:
|
||||||
self.pending_bookmark = bm
|
self.pending_bookmark = bm
|
||||||
|
if spine_index < 0 or spine_index >= len(self.iterator.spine):
|
||||||
|
spine_index = 0
|
||||||
self.load_path(self.iterator.spine[spine_index])
|
self.load_path(self.iterator.spine[spine_index])
|
||||||
|
|
||||||
def toc_clicked(self, index):
|
def toc_clicked(self, index):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user