Fix for bookmarks in books without cover

This commit is contained in:
Dmitrii Petukhov
2019-07-06 07:30:40 +01:00
parent 24e45ac2b7
commit 5e74b6f261

View File

@@ -272,7 +272,7 @@ class Tab(QtWidgets.QWidget):
# Finally, to make sure the cover image isn't # Finally, to make sure the cover image isn't
# scrolled halfway through on first open, # 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) self.contentView.verticalScrollBar().setValue(0)
def generate_position(self, is_read=False): def generate_position(self, is_read=False):