mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -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)
|
||||
else:
|
||||
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])
|
||||
|
||||
def toc_clicked(self, index):
|
||||
|
Loading…
x
Reference in New Issue
Block a user