forked from openlp/openlp
clean up bibles
This commit is contained in:
commit
8e6566639e
@ -449,8 +449,7 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
if restore:
|
if restore:
|
||||||
old_text = unicode(combo.currentText())
|
old_text = unicode(combo.currentText())
|
||||||
combo.clear()
|
combo.clear()
|
||||||
for i in range(range_from, range_to + 1):
|
combo.addItems([unicode(i) for i in range(range_from, range_to + 1)])
|
||||||
combo.addItem(unicode(i))
|
|
||||||
if restore and combo.findText(old_text) != -1:
|
if restore and combo.findText(old_text) != -1:
|
||||||
combo.setCurrentIndex(combo.findText(old_text))
|
combo.setCurrentIndex(combo.findText(old_text))
|
||||||
|
|
||||||
@ -704,8 +703,7 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
service_item.theme = None
|
service_item.theme = None
|
||||||
else:
|
else:
|
||||||
service_item.theme = self.settings.bible_theme
|
service_item.theme = self.settings.bible_theme
|
||||||
for slide in raw_slides:
|
[service_item.add_from_text(slide[:30], slide) for slide in raw_slides]
|
||||||
service_item.add_from_text(slide[:30], slide)
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def formatTitle(self, start_item, old_item):
|
def formatTitle(self, start_item, old_item):
|
||||||
@ -744,8 +742,7 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
else:
|
else:
|
||||||
verse_range = start_chapter + verse_separator + start_verse + \
|
verse_range = start_chapter + verse_separator + start_verse + \
|
||||||
range_separator + old_chapter + verse_separator + old_verse
|
range_separator + old_chapter + verse_separator + old_verse
|
||||||
title = u'%s %s (%s)' % (start_book, verse_range, bibles)
|
return u'%s %s (%s)' % (start_book, verse_range, bibles)
|
||||||
return title
|
|
||||||
|
|
||||||
def checkTitle(self, item, old_item):
|
def checkTitle(self, item, old_item):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user