forked from openlp/openlp
Fixed a super-annoying bug where any newly imported Bibles would throw an exception.
This commit is contained in:
parent
01ed8e4ed8
commit
8436d9d8c0
@ -332,7 +332,10 @@ class BibleManager(object):
|
||||
return None
|
||||
language_selection = self.get_meta_data(bible, u'book_name_language')
|
||||
if language_selection:
|
||||
try:
|
||||
language_selection = int(language_selection.value)
|
||||
except (ValueError, TypeError):
|
||||
language_selection = 0
|
||||
if language_selection is None or language_selection == -1:
|
||||
language_selection = QtCore.QSettings().value(
|
||||
self.settingsSection + u'/bookname language',
|
||||
|
Loading…
Reference in New Issue
Block a user