make sure that the 'edit' and 'delete' buttons are disabled after editing all verses

This commit is contained in:
Andreas Preikschat 2010-10-10 14:14:12 +02:00
parent 068a3716f6
commit 421577f8ce
1 changed files with 2 additions and 0 deletions

View File

@ -483,6 +483,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
self.VerseListWidget.resizeRowsToContents()
self.VerseListWidget.repaint()
self.tagRows()
self.VerseEditButton.setEnabled(False)
self.VerseDeleteButton.setEnabled(False)
def onVerseDeleteButtonClicked(self):
self.VerseListWidget.removeRow(self.VerseListWidget.currentRow())