forked from openlp/openlp
fixed bug-969909 ('Missing verse tag' warning is not updated after adding a new verse
bzr-revno: 1920 Fixes: https://launchpad.net/bugs/969909
This commit is contained in:
commit
91ee39dd5e
@ -489,6 +489,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
||||
self.verseListWidget.setItem(
|
||||
self.verseListWidget.rowCount() - 1, 0, item)
|
||||
self.tagRows()
|
||||
# Check if all verse tags are used.
|
||||
self.onVerseOrderTextChanged(self.verseOrderEdit.text())
|
||||
|
||||
def onVerseEditButtonClicked(self):
|
||||
item = self.verseListWidget.currentItem()
|
||||
@ -516,6 +518,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
||||
item.setData(QtCore.Qt.UserRole, tempId[row])
|
||||
self.verseListWidget.setItem(row, 0, item)
|
||||
self.tagRows()
|
||||
# Check if all verse tags are used.
|
||||
self.onVerseOrderTextChanged(self.verseOrderEdit.text())
|
||||
|
||||
def onVerseEditAllButtonClicked(self):
|
||||
verse_list = u''
|
||||
@ -575,6 +579,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
||||
self.tagRows()
|
||||
self.verseEditButton.setEnabled(False)
|
||||
self.verseDeleteButton.setEnabled(False)
|
||||
# Check if all verse tags are used.
|
||||
self.onVerseOrderTextChanged(self.verseOrderEdit.text())
|
||||
|
||||
def onVerseDeleteButtonClicked(self):
|
||||
self.verseListWidget.removeRow(self.verseListWidget.currentRow())
|
||||
|
Loading…
Reference in New Issue
Block a user