forked from openlp/openlp
Fixed a small bug left over from a previous refactoring.
Fixes: https://launchpad.net/bugs/997174
This commit is contained in:
parent
bfcb6a50b0
commit
f5cba00ca9
@ -843,10 +843,11 @@ class BibleMediaItem(MediaManagerItem):
|
||||
items = []
|
||||
language_selection = self.plugin.manager.get_language_selection(bible)
|
||||
for count, verse in enumerate(search_results):
|
||||
book = None
|
||||
if language_selection == LanguageSelection.Bible:
|
||||
book = verse.book.name
|
||||
elif language_selection == LanguageSelection.Application:
|
||||
book_names = BibleStrings().Booknames
|
||||
book_names = BibleStrings().BookNames
|
||||
data = BiblesResourcesDB.get_book_by_id(
|
||||
verse.book.book_reference_id)
|
||||
book = unicode(book_names[data[u'abbreviation']])
|
||||
|
Loading…
Reference in New Issue
Block a user