forked from openlp/openlp
Song editing fix
This commit is contained in:
parent
4dd19eb643
commit
d7ecd8a493
@ -289,13 +289,15 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
item.setText(afterText)
|
item.setText(afterText)
|
||||||
#number of lines has change
|
#number of lines has change
|
||||||
if len(tempText.split(u'\n')) != len(afterText.split(u'\n')):
|
if len(tempText.split(u'\n')) != len(afterText.split(u'\n')):
|
||||||
tempList = []
|
tempList = {}
|
||||||
for row in range(0, self.VerseListWidget.count()):
|
for row in range(0, self.VerseListWidget.count()):
|
||||||
tempList.insert(row, self.VerseListWidget.item(row))
|
item = self.VerseListWidget.item(row)
|
||||||
|
tempList[row] = item.text()
|
||||||
self.VerseListWidget.clear()
|
self.VerseListWidget.clear()
|
||||||
for row in range (0, len(tempList)):
|
for row in range (0, len(tempList)):
|
||||||
item = tempList[row]
|
text = tempList[row]
|
||||||
self.VerseListWidget.addItem(item)
|
print text
|
||||||
|
self.VerseListWidget.addItem(text)
|
||||||
self.VerseListWidget.repaint()
|
self.VerseListWidget.repaint()
|
||||||
self.VerseEditButton.setEnabled(False)
|
self.VerseEditButton.setEnabled(False)
|
||||||
self.VerseDeleteButton.setEnabled(False)
|
self.VerseDeleteButton.setEnabled(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user