Scrollbar visibility when needed
Exception handling in ePub book year
This commit is contained in:
@@ -127,7 +127,7 @@ class EPUB:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
self.book['year'] = int(self.book['year'][:4])
|
self.book['year'] = int(self.book['year'][:4])
|
||||||
except (TypeError, KeyError, IndexError):
|
except (TypeError, KeyError, IndexError, ValueError):
|
||||||
self.book['year'] = 9999
|
self.book['year'] = 9999
|
||||||
|
|
||||||
# Get identifier
|
# Get identifier
|
||||||
|
@@ -100,7 +100,7 @@ class Tab(QtWidgets.QWidget):
|
|||||||
self.contentView.setObjectName('contentView')
|
self.contentView.setObjectName('contentView')
|
||||||
self.contentView.verticalScrollBar().setSingleStep(7)
|
self.contentView.verticalScrollBar().setSingleStep(7)
|
||||||
self.contentView.setHorizontalScrollBarPolicy(
|
self.contentView.setHorizontalScrollBarPolicy(
|
||||||
QtCore.Qt.ScrollBarAlwaysOff)
|
QtCore.Qt.ScrollBarAsNeeded)
|
||||||
|
|
||||||
# See bookmark availability
|
# See bookmark availability
|
||||||
if not self.metadata['bookmarks']:
|
if not self.metadata['bookmarks']:
|
||||||
|
Reference in New Issue
Block a user