Merge lp:~googol-deactivatedaccount/openlp/bug-1170435-2 into lp:openlp/2.0

Proposed by Andreas Preikschat
Status: Merged
Merged at revision: 2145
Proposed branch: lp:~googol-deactivatedaccount/openlp/bug-1170435-2
Merge into: lp:openlp/2.0
Diff against target: 52 lines (+12/-5)
2 files modified
openlp/plugins/songs/forms/editsongdialog.py (+4/-4)
openlp/plugins/songs/forms/editsongform.py (+8/-1)
To merge this branch: bzr merge lp:~googol-deactivatedaccount/openlp/bug-1170435-2
Reviewer Review Type Date Requested Status
Tim Bentley Approve
Raoul Snyman response to comment Pending
Review via email: mp+169697@code.launchpad.net

This proposal supersedes a proposal from 2013-04-18.

Description of the change

Hello,

- fixes bug #1170435 (We should not warn when verse order is empty)

To post a comment you must log in.
Revision history for this message
Raoul Snyman (raoul-snyman) wrote : Posted in a previous version of this proposal

I disagree. We WILL have users who forget to set a verse order and then complain in the forums and log bugs about it.

If you want to do something like this, make it optional and turn the warning on by default.

review: Disapprove
Revision history for this message
Tim Bentley (trb143) : Posted in a previous version of this proposal
review: Approve
Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote : Posted in a previous version of this proposal

> I disagree. We WILL have users who forget to set a verse order and then
> complain in the forums and log bugs about it.

Or the think that they must enter a verse order.

Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote : Posted in a previous version of this proposal

The verse order is optional. If people forget to add it, then they will not see the warning. If we want that people do not forget we need a dialog. And as this is optional this is a no-go. We also do not have a warning that the alternate title is not set or whatever is not set.

Revision history for this message
Raoul Snyman (raoul-snyman) wrote : Posted in a previous version of this proposal

Yes, but the alternate title has no effect on how their song is displayed.

Like I said, if people want to get rid of the warning, make an option. The majority of our users will need it turned on.

Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote : Posted in a previous version of this proposal

> Like I said, if people want to get rid of the warning, make an option. The
> majority of our users will need it turned on.
I think an option is overkill. We could just use another text to display: "The verse order is empty" or something similar.

Revision history for this message
Raoul Snyman (raoul-snyman) wrote : Posted in a previous version of this proposal

Yes, a different warning is fine.

Revision history for this message
Tim Bentley (trb143) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openlp/plugins/songs/forms/editsongdialog.py'
2--- openlp/plugins/songs/forms/editsongdialog.py 2012-12-30 19:41:24 +0000
3+++ openlp/plugins/songs/forms/editsongdialog.py 2013-06-16 17:22:28 +0000
4@@ -283,7 +283,6 @@
5 self.bottomLayout.setObjectName(u'bottomLayout')
6 self.warningLabel = QtGui.QLabel(editSongDialog)
7 self.warningLabel.setObjectName(u'warningLabel')
8- self.warningLabel.setVisible(False)
9 self.bottomLayout.addWidget(self.warningLabel)
10 self.buttonBox = create_button_box(editSongDialog, u'buttonBox',
11 [u'cancel', u'save'])
12@@ -355,9 +354,10 @@
13 translate('SongsPlugin.EditSongForm', '&Remove'))
14 self.audioRemoveAllButton.setText(
15 translate('SongsPlugin.EditSongForm', 'Remove &All'))
16- self.warningLabel.setText(
17- translate('SongsPlugin.EditSongForm', '<strong>Warning:</strong>'
18- ' Not all of the verses are in use.'))
19+ self.notAlllVersesUsed = translate('SongsPlugin.EditSongForm', '<strong>Warning:</strong>'
20+ ' Not all of the verses are in use.')
21+ self.noVerseOrder = translate('SongsPlugin.EditSongForm', '<strong>Warning:</strong>'
22+ ' You have not entered a verse order.')
23
24 def editSongDialogComboBox(parent, name):
25 """
26
27=== modified file 'openlp/plugins/songs/forms/editsongform.py'
28--- openlp/plugins/songs/forms/editsongform.py 2013-03-04 20:49:55 +0000
29+++ openlp/plugins/songs/forms/editsongform.py 2013-06-16 17:22:28 +0000
30@@ -349,6 +349,8 @@
31 self.titleEdit.setFocus(QtCore.Qt.OtherFocusReason)
32 # Hide or show the preview button.
33 self.previewButton.setVisible(preview)
34+ # Check if all verse tags are used.
35+ self.onVerseOrderTextChanged(self.verseOrderEdit.text())
36
37 def tagRows(self):
38 """
39@@ -608,7 +610,12 @@
40 for verse in verses:
41 if not verse in order:
42 verses_not_used.append(verse)
43- self.warningLabel.setVisible(len(verses_not_used) > 0)
44+ label_text = u''
45+ if not self.verseOrderEdit.text():
46+ label_text = self.noVerseOrder
47+ elif verses_not_used:
48+ label_text = self.notAlllVersesUsed
49+ self.warningLabel.setText(label_text)
50
51 def __extractVerseOrder(self, verse_order):
52 order = []

Subscribers

People subscribed via source and target branches