forked from openlp/openlp
Fix crash in last change which stopped OpenLP starting
bzr-revno: 1456
This commit is contained in:
commit
6657c49b04
@ -322,11 +322,12 @@ class BibleMediaItem(MediaManagerItem):
|
||||
self.advancedVersionComboBox.addItem(bible)
|
||||
self.advancedSecondComboBox.addItem(bible)
|
||||
# set the default value
|
||||
book = QtCore.QSettings().value(
|
||||
bible = QtCore.QSettings().value(
|
||||
self.settingsSection + u'/advanced bible',
|
||||
QtCore.QVariant(u'')).toString()
|
||||
find_and_set_in_combo_box(self.advancedVersionComboBox, book)
|
||||
self.initialiseAdvancedBible(unicode(book))
|
||||
if bible in bibles:
|
||||
find_and_set_in_combo_box(self.advancedVersionComboBox, bible)
|
||||
self.initialiseAdvancedBible(unicode(bible))
|
||||
|
||||
def reloadBibles(self):
|
||||
log.debug(u'Reloading Bibles')
|
||||
@ -840,4 +841,4 @@ class BibleMediaItem(MediaManagerItem):
|
||||
self.settings.layout_style)
|
||||
QtCore.QSettings().setValue(
|
||||
self.settingsSection + u'/verse layout style',
|
||||
QtCore.QVariant(self.settings.layout_style))
|
||||
QtCore.QVariant(self.settings.layout_style))
|
||||
|
Loading…
Reference in New Issue
Block a user