forked from openlp/openlp
Fix size input validation again
This commit is contained in:
parent
2f04bde2aa
commit
b405195261
@ -46,7 +46,7 @@ class ValidEdit(QtGui.QLineEdit):
|
||||
"""
|
||||
Only return Integers. Space is 0
|
||||
"""
|
||||
if len(self.text()) == 0:
|
||||
if self.text().isEmpty():
|
||||
return QtCore.QString(u'0')
|
||||
else:
|
||||
return self.text()
|
||||
|
@ -390,7 +390,7 @@ class SongMediaItem(MediaManagerItem):
|
||||
raw_footer.append(author_list)
|
||||
raw_footer.append(song.copyright )
|
||||
raw_footer.append(unicode(
|
||||
translate('SongsPlugin.MediaItem', 'CCLI Licence: ') +
|
||||
translate('SongsPlugin.MediaItem', 'CCLI License: ') +
|
||||
QtCore.QSettings().value(u'general/ccli number',
|
||||
QtCore.QVariant(u'')).toString()))
|
||||
service_item.raw_footer = raw_footer
|
||||
|
Loading…
Reference in New Issue
Block a user