- fixed bug #884826 (Cloning songs does not work)

bzr-revno: 1795
Fixes: https://launchpad.net/bugs/884826
This commit is contained in:
Andreas Preikschat 2011-11-01 23:07:07 +01:00
commit 8c730871ca
1 changed files with 1 additions and 2 deletions

View File

@ -419,8 +419,7 @@ class SongMediaItem(MediaManagerItem):
item_id = (self.editItem.data(QtCore.Qt.UserRole)).toInt()[0]
old_song = self.plugin.manager.get_object(Song, item_id)
song_xml = self.openLyrics.song_to_xml(old_song)
new_song_id = self.openLyrics.xml_to_song(song_xml)
new_song = self.plugin.manager.get_object(Song, new_song_id)
new_song = self.openLyrics.xml_to_song(song_xml)
new_song.title = u'%s <%s>' % (new_song.title,
translate('SongsPlugin.MediaItem', 'copy',
'For song cloning'))