Only show "CCLI License:" in the footer, if the user entered a CCLI number.

bzr-revno: 1276
This commit is contained in:
Andreas Preikschat 2011-02-07 03:12:38 +00:00 committed by Jon Tibble
commit 220d762753
1 changed files with 6 additions and 4 deletions

View File

@ -378,10 +378,12 @@ class SongMediaItem(MediaManagerItem):
raw_footer.append(song.title) raw_footer.append(song.title)
raw_footer.append(author_list) raw_footer.append(author_list)
raw_footer.append(song.copyright) raw_footer.append(song.copyright)
raw_footer.append(unicode( if QtCore.QSettings().value(u'general/ccli number',
translate('SongsPlugin.MediaItem', 'CCLI License: ') + QtCore.QVariant(u'')).toString():
QtCore.QSettings().value(u'general/ccli number', raw_footer.append(unicode(
QtCore.QVariant(u'')).toString())) translate('SongsPlugin.MediaItem', 'CCLI License: ') +
QtCore.QSettings().value(u'general/ccli number',
QtCore.QVariant(u'')).toString()))
service_item.raw_footer = raw_footer service_item.raw_footer = raw_footer
service_item.audit = [ service_item.audit = [
song.title, author_audit, song.copyright, unicode(song.ccli_number) song.title, author_audit, song.copyright, unicode(song.ccli_number)