This commit is contained in:
Tim Bentley 2011-05-19 05:42:10 +01:00
commit cff081066f
2 changed files with 3 additions and 3 deletions

View File

@ -422,7 +422,8 @@ class FoilPresenter(object):
VerseType.Tags[VerseType.PreChorus]: 1
}
for strophe in foilpresenterfolie.strophen.strophe:
text = self._child(strophe.text_)
text = self._child(strophe.text_) if hasattr(strophe, u'text_') \
else u''
verse_name = self._child(strophe.key)
children = strophe.getchildren()
sortnr = False

View File

@ -220,8 +220,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()