Make sure that the 'edit' and 'delete' buttons are disabled after editing all verses (because no verse is selected).

bzr-revno: 1079
This commit is contained in:
Andreas Preikschat 2010-10-10 18:42:29 +02:00 committed by Raoul Snyman
commit bf7df829d0

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())