Scrollbar visibility when needed

Exception handling in ePub book year
This commit is contained in:
BasioMeusPuga
2018-03-12 19:51:01 +05:30
parent 9e9d7cca90
commit 9e5559bbfa
2 changed files with 2 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ class EPUB:
try:
self.book['year'] = int(self.book['year'][:4])
except (TypeError, KeyError, IndexError):
except (TypeError, KeyError, IndexError, ValueError):
self.book['year'] = 9999
# Get identifier

View File

@@ -100,7 +100,7 @@ class Tab(QtWidgets.QWidget):
self.contentView.setObjectName('contentView')
self.contentView.verticalScrollBar().setSingleStep(7)
self.contentView.setHorizontalScrollBarPolicy(
QtCore.Qt.ScrollBarAlwaysOff)
QtCore.Qt.ScrollBarAsNeeded)
# See bookmark availability
if not self.metadata['bookmarks']: