forked from openlp/openlp
Fixed a tiny glitch, remove author button became always disabled even if not needed to. Copied from lp:~mahfiaz/openlp/author-delete-button-not-active-in-edit-dialog
This commit is contained in:
parent
6d2cfedd7e
commit
3d387cb296
@ -625,7 +625,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog, RegistryProperties):
|
|||||||
"""
|
"""
|
||||||
Remove the author from the list when the delete button is clicked.
|
Remove the author from the list when the delete button is clicked.
|
||||||
"""
|
"""
|
||||||
self.author_remove_button.setEnabled(False)
|
if self.authors_list_view.count() <= 2:
|
||||||
|
self.author_remove_button.setEnabled(False)
|
||||||
item = self.authors_list_view.currentItem()
|
item = self.authors_list_view.currentItem()
|
||||||
row = self.authors_list_view.row(item)
|
row = self.authors_list_view.row(item)
|
||||||
self.authors_list_view.takeItem(row)
|
self.authors_list_view.takeItem(row)
|
||||||
|
Loading…
Reference in New Issue
Block a user