only show ccli number if present

This commit is contained in:
Andreas Preikschat 2011-02-06 20:53:08 +01:00
parent a5a394a290
commit 8e36c7a7ec

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)