From 2e587131f35567eadfaddbb5394a2b2f44e69ef7 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sat, 31 Mar 2012 11:58:34 +0200 Subject: [PATCH] fixed bug-969909 ('Missing verse tag' warning is not updated after adding a new verse Fixes: https://launchpad.net/bugs/969909 --- openlp/plugins/songs/forms/editsongform.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openlp/plugins/songs/forms/editsongform.py b/openlp/plugins/songs/forms/editsongform.py index 36ae46e41..468139164 100644 --- a/openlp/plugins/songs/forms/editsongform.py +++ b/openlp/plugins/songs/forms/editsongform.py @@ -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())