mirror of https://gitlab.com/openlp/openlp.git
Merge branch 'issue-1338' into 'master'
Only show hash if song book number exists Closes #1338 See merge request openlp/openlp!573
This commit is contained in:
commit
c737c81510
|
@ -568,8 +568,11 @@ class SongMediaItem(MediaManagerItem):
|
|||
if self.settings.value('songs/add songbook slide') and song.songbook_entries:
|
||||
first_slide = '\n'
|
||||
for songbook_entry in song.songbook_entries:
|
||||
first_slide += '{book} #{num}'.format(book=songbook_entry.songbook.name,
|
||||
num=songbook_entry.entry)
|
||||
if songbook_entry.entry:
|
||||
first_slide += '{book} #{num}'.format(book=songbook_entry.songbook.name,
|
||||
num=songbook_entry.entry)
|
||||
else:
|
||||
first_slide += songbook_entry.songbook.name
|
||||
if songbook_entry.songbook.publisher:
|
||||
first_slide += ' ({pub})'.format(pub=songbook_entry.songbook.publisher)
|
||||
first_slide += '\n\n'
|
||||
|
|
Loading…
Reference in New Issue