forked from openlp/openlp
Fix song editing bug
bzr-revno: 1016 Fixes: https://launchpad.net/bugs/630247
This commit is contained in:
commit
1dd5ee185c
@ -274,7 +274,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
item = self.VerseListWidget.item(row, 0)
|
item = self.VerseListWidget.item(row, 0)
|
||||||
data = unicode(item.data(QtCore.Qt.UserRole).toString())
|
data = unicode(item.data(QtCore.Qt.UserRole).toString())
|
||||||
bit = data.split(u':')
|
bit = data.split(u':')
|
||||||
rowTag = u'%s\n%s' % (bit[0][0:1], bit[1])
|
rowTag = u'%s%s' % (bit[0][0:1], bit[1])
|
||||||
rowLabel.append(rowTag)
|
rowLabel.append(rowTag)
|
||||||
self.VerseListWidget.setVerticalHeaderLabels(rowLabel)
|
self.VerseListWidget.setVerticalHeaderLabels(rowLabel)
|
||||||
|
|
||||||
@ -395,9 +395,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
self.VerseDeleteButton.setEnabled(True)
|
self.VerseDeleteButton.setEnabled(True)
|
||||||
|
|
||||||
def onVerseAddButtonClicked(self):
|
def onVerseAddButtonClicked(self):
|
||||||
# Allow insert button as you do not know if multiple verses will
|
self.verse_form.setVerse(u'', True)
|
||||||
# be entered.
|
|
||||||
self.verse_form.setVerse(u'')
|
|
||||||
if self.verse_form.exec_():
|
if self.verse_form.exec_():
|
||||||
afterText, verse, subVerse = self.verse_form.getVerse()
|
afterText, verse, subVerse = self.verse_form.getVerse()
|
||||||
data = u'%s:%s' % (verse, subVerse)
|
data = u'%s:%s' % (verse, subVerse)
|
||||||
|
Loading…
Reference in New Issue
Block a user