Fix stack trace when editing a song

bzr-revno: 1553
Fixes: https://launchpad.net/bugs/784800
This commit is contained in:
Jonathan Corwin 2011-05-18 20:57:31 +01:00
commit 4a64dfe3db
1 changed files with 1 additions and 2 deletions

View File

@ -221,8 +221,7 @@ class SongMediaItem(MediaManagerItem):
# Push edits to the service manager to update items
if self.editItem and self.updateServiceOnEdit and \
not self.remoteTriggered:
item_id = _getIdOfItemToGenerate(self.editItem)
item = self.buildServiceItem(item_id)
item = self.buildServiceItem(self.editItem)
self.parent.serviceManager.replaceServiceItem(item)
self.onRemoteEditClear()
self.onSearchTextButtonClick()