From d62fde1237f7433b230297e6494dfdec331951e9 Mon Sep 17 00:00:00 2001 From: Raoul Snyman <raoul.snyman@saturnlaboratories.co.za> Date: Thu, 22 Mar 2012 22:03:11 +0200 Subject: [PATCH] A potential fix for bug #812628. --- openlp/plugins/songs/forms/editsongform.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/songs/forms/editsongform.py b/openlp/plugins/songs/forms/editsongform.py index 91fff151b..a33f3cc04 100644 --- a/openlp/plugins/songs/forms/editsongform.py +++ b/openlp/plugins/songs/forms/editsongform.py @@ -361,7 +361,9 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog): def onAuthorAddButtonClicked(self): item = int(self.authorsComboBox.currentIndex()) - text = unicode(self.authorsComboBox.currentText()) + text = unicode(self.authorsComboBox.currentText()).strip(u' \r\n\t') + if text in self.authors: + item = self.authors.index(text) if item == 0 and text: if QtGui.QMessageBox.question(self, translate('SongsPlugin.EditSongForm', 'Add Author'),