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,6 +378,8 @@ class SongMediaItem(MediaManagerItem):
raw_footer.append(song.title)
raw_footer.append(author_list)
raw_footer.append(song.copyright)
if QtCore.QSettings().value(u'general/ccli number',
QtCore.QVariant(u'')).toString():
raw_footer.append(unicode(
translate('SongsPlugin.MediaItem', 'CCLI License: ') +
QtCore.QSettings().value(u'general/ccli number',