mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -1094,7 +1094,9 @@ class EbookViewer(MainWindow):
|
||||
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…
x
Reference in New Issue
Block a user