forked from openlp/openlp
cleanup
This commit is contained in:
parent
719268f121
commit
24de78680e
@ -468,8 +468,7 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
'''
|
'''
|
||||||
log.debug(u'generating slide data')
|
log.debug(u'generating slide data')
|
||||||
items = self.listView.selectedIndexes()
|
items = self.listView.selectedIndexes()
|
||||||
items_length = len(items)
|
if len(items) == 0:
|
||||||
if items_length == 0:
|
|
||||||
return False
|
return False
|
||||||
bible_text = u''
|
bible_text = u''
|
||||||
old_chapter = u''
|
old_chapter = u''
|
||||||
@ -540,7 +539,7 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
# If we are not 'Verse Per Slide' we have to make sure, that we
|
# If we are not 'Verse Per Slide' we have to make sure, that we
|
||||||
# add more verses.
|
# add more verses.
|
||||||
else:
|
else:
|
||||||
if item.row() < items_length - 1:
|
if item.row() < len(items) - 1:
|
||||||
bitem = items[item.row() + 1]
|
bitem = items[item.row() + 1]
|
||||||
reference = bitem.data(QtCore.Qt.UserRole)
|
reference = bitem.data(QtCore.Qt.UserRole)
|
||||||
if isinstance(reference, QtCore.QVariant):
|
if isinstance(reference, QtCore.QVariant):
|
||||||
|
Loading…
Reference in New Issue
Block a user