forked from openlp/openlp
Remove control characters from song copyright string
bzr-revno: 1932 Fixes: https://launchpad.net/bugs/969282
This commit is contained in:
commit
b2abc5a060
@ -193,19 +193,19 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
||||
self.song = None
|
||||
self.initialise()
|
||||
self.songTabWidget.setCurrentIndex(0)
|
||||
self.titleEdit.setText(u'')
|
||||
self.alternativeEdit.setText(u'')
|
||||
self.copyrightEdit.setText(u'')
|
||||
self.verseOrderEdit.setText(u'')
|
||||
self.commentsEdit.setText(u'')
|
||||
self.CCLNumberEdit.setText(u'')
|
||||
self.titleEdit.clear()
|
||||
self.alternativeEdit.clear()
|
||||
self.copyrightEdit.clear()
|
||||
self.verseOrderEdit.clear()
|
||||
self.commentsEdit.clear()
|
||||
self.CCLNumberEdit.clear()
|
||||
self.verseListWidget.clear()
|
||||
self.verseListWidget.setRowCount(0)
|
||||
self.authorsListView.clear()
|
||||
self.topicsListView.clear()
|
||||
self.audioListWidget.clear()
|
||||
self.titleEdit.setFocus(QtCore.Qt.OtherFocusReason)
|
||||
self.songBookNumberEdit.setText(u'')
|
||||
self.songBookNumberEdit.clear()
|
||||
self.loadAuthors()
|
||||
self.loadTopics()
|
||||
self.loadBooks()
|
||||
|
@ -326,7 +326,7 @@ def clean_song(manager, song):
|
||||
# Rebuild the verse order, to convert translated verse tags, which might
|
||||
# have been added prior to 1.9.5.
|
||||
if song.verse_order:
|
||||
order = song.verse_order.strip().split()
|
||||
order = CONTROL_CHARS.sub(u'', song.verse_order).strip().split()
|
||||
else:
|
||||
order = []
|
||||
new_order = []
|
||||
@ -358,6 +358,8 @@ def clean_song(manager, song):
|
||||
author = Author.populate(
|
||||
display_name=name, last_name=u'', first_name=u'')
|
||||
song.authors.append(author)
|
||||
if song.copyright:
|
||||
song.copyright = CONTROL_CHARS.sub(u'', song.copyright).strip()
|
||||
|
||||
from xml import OpenLyrics, SongXML
|
||||
from songstab import SongsTab
|
||||
|
Loading…
Reference in New Issue
Block a user