forked from openlp/openlp
Fixed traceback, when 'locked' and no dual bible selected.
This commit is contained in:
parent
639484b078
commit
1f4bc114a9
@ -587,7 +587,12 @@ class BibleMediaItem(MediaManagerItem):
|
||||
Check if the first item is a second bible item or not.
|
||||
"""
|
||||
bitem = self.listView.item(0)
|
||||
item_second_bible = self._decodeQtObject(bitem, 'second_bible')
|
||||
if not bitem.flags() & QtCore.Qt.ItemIsSelectable:
|
||||
# The item is the "No Search Results" item.
|
||||
self.listView.clear()
|
||||
item_second_bible = None
|
||||
else:
|
||||
item_second_bible = self._decodeQtObject(bitem, 'second_bible')
|
||||
if item_second_bible and second_bible or not item_second_bible and \
|
||||
not second_bible:
|
||||
self.displayResults(bible, second_bible)
|
||||
|
Loading…
Reference in New Issue
Block a user