E-book viewer: Fix specifying a non-existen location via --open-at causing viewer to hang

This commit is contained in:
Kovid Goyal 2019-04-20 10:39:25 +05:30
parent 9a264ebf28
commit fa0e1c66ca
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1094,7 +1094,9 @@ class EbookViewer(MainWindow):
if index.isValid(): if index.isValid():
target_index = index target_index = index
break break
if target_index is not None: if target_index is None:
self.next_document()
else:
if self.resize_in_progress: if self.resize_in_progress:
self.pending_toc_click = target_index self.pending_toc_click = target_index
else: else: