forked from openlp/openlp
parent
d4eeb4136a
commit
1bf1ffc848
@ -419,8 +419,7 @@ class SongMediaItem(MediaManagerItem):
|
|||||||
item_id = (self.editItem.data(QtCore.Qt.UserRole)).toInt()[0]
|
item_id = (self.editItem.data(QtCore.Qt.UserRole)).toInt()[0]
|
||||||
old_song = self.plugin.manager.get_object(Song, item_id)
|
old_song = self.plugin.manager.get_object(Song, item_id)
|
||||||
song_xml = self.openLyrics.song_to_xml(old_song)
|
song_xml = self.openLyrics.song_to_xml(old_song)
|
||||||
new_song_id = self.openLyrics.xml_to_song(song_xml)
|
new_song = self.openLyrics.xml_to_song(song_xml)
|
||||||
new_song = self.plugin.manager.get_object(Song, new_song_id)
|
|
||||||
new_song.title = u'%s <%s>' % (new_song.title,
|
new_song.title = u'%s <%s>' % (new_song.title,
|
||||||
translate('SongsPlugin.MediaItem', 'copy',
|
translate('SongsPlugin.MediaItem', 'copy',
|
||||||
'For song cloning'))
|
'For song cloning'))
|
||||||
|
Loading…
Reference in New Issue
Block a user