forked from openlp/openlp
Fix traceback if bible list download fails.
This commit is contained in:
parent
4ee29b0e3d
commit
2e41c5e6fa
@ -454,7 +454,7 @@ class BibleImportForm(OpenLPWizard):
|
|||||||
:param index: The index of the combo box.
|
:param index: The index of the combo box.
|
||||||
"""
|
"""
|
||||||
self.web_translation_combo_box.clear()
|
self.web_translation_combo_box.clear()
|
||||||
if self.web_bible_list:
|
if self.web_bible_list and index in self.web_bible_list:
|
||||||
bibles = list(self.web_bible_list[index].keys())
|
bibles = list(self.web_bible_list[index].keys())
|
||||||
bibles.sort(key=get_locale_key)
|
bibles.sort(key=get_locale_key)
|
||||||
self.web_translation_combo_box.addItems(bibles)
|
self.web_translation_combo_box.addItems(bibles)
|
||||||
|
Loading…
Reference in New Issue
Block a user