Fix field name

This commit is contained in:
Tim Bentley 2010-12-20 14:15:03 +00:00
parent bef5479a6a
commit 12af5cada3

View File

@ -131,7 +131,7 @@ class EditVerseForm(QtGui.QDialog, Ui_EditVerseDialog):
def setVerse(self, text, single=False,
tag=u'%s:1' % VerseType.to_string(VerseType.Verse)):
self.verseType = single
self.hasSingleVerse = single
if single:
verse_type, verse_number = tag.split(u':')
verse_type_index = VerseType.from_string(verse_type)
@ -162,7 +162,7 @@ class EditVerseForm(QtGui.QDialog, Ui_EditVerseDialog):
return text
def accept(self):
if self.verseType:
if self.hasSingleVerse:
value = unicode(self.getVerse()[0])
else:
value = self.getVerse()[0].split(u'\n')[1]