From 5e74b6f261ab79ebfc68c2fee4392ede55db663b Mon Sep 17 00:00:00 2001 From: Dmitrii Petukhov Date: Sat, 6 Jul 2019 07:30:40 +0100 Subject: [PATCH] Fix for bookmarks in books without cover --- lector/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lector/widgets.py b/lector/widgets.py index 8b47bd5..7aa1788 100644 --- a/lector/widgets.py +++ b/lector/widgets.py @@ -272,7 +272,7 @@ class Tab(QtWidgets.QWidget): # Finally, to make sure the cover image isn't # scrolled halfway through on first open, - if self.metadata['position']['current_chapter'] == 1: + if self.metadata['cover'] and self.metadata['position']['current_chapter'] == 1: self.contentView.verticalScrollBar().setValue(0) def generate_position(self, is_read=False):