mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 21:16:12 +01:00
E-book viewer: Fix specifying a non-existen location via --open-at causing viewer to hang
This commit is contained in:
parent
9a264ebf28
commit
fa0e1c66ca
1 changed files with 3 additions and 1 deletions
|
|
@ -1094,7 +1094,9 @@ def load_ebook(self, pathtoebook, open_at=None, reopen_at=None):
|
|||
if index.isValid():
|
||||
target_index = index
|
||||
break
|
||||
if target_index is not None:
|
||||
if target_index is None:
|
||||
self.next_document()
|
||||
else:
|
||||
if self.resize_in_progress:
|
||||
self.pending_toc_click = target_index
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue