openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #21603
lp:~mahfiaz/openlp/author-delete-button-not-active-in-edit-dialog into lp:openlp
mahfiaz has proposed merging lp:~mahfiaz/openlp/author-delete-button-not-active-in-edit-dialog into lp:openlp.
Requested reviews:
Tim Bentley (trb143)
For more details, see:
https://code.launchpad.net/~mahfiaz/openlp/author-delete-button-not-active-in-edit-dialog/+merge/183329
Fixed a tiny glitch, remove author button became always disabled even if not needed to.
--
https://code.launchpad.net/~mahfiaz/openlp/author-delete-button-not-active-in-edit-dialog/+merge/183329
Your team OpenLP Core is subscribed to branch lp:openlp.
=== modified file 'openlp/plugins/songs/forms/editsongform.py'
--- openlp/plugins/songs/forms/editsongform.py 2013-08-31 08:56:21 +0000
+++ openlp/plugins/songs/forms/editsongform.py 2013-08-31 15:20:47 +0000
@@ -538,7 +538,8 @@
"""
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()
row = self.authors_list_view.row(item)
self.authors_list_view.takeItem(row)
Follow ups