From 58c2cd34b15b955b8f03a3c1b007d8e36759a1c5 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Thu, 22 Mar 2012 22:26:14 +0200 Subject: [PATCH] Added an else statement just to make sure we are setting the item index. --- openlp/plugins/songs/forms/editsongform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openlp/plugins/songs/forms/editsongform.py b/openlp/plugins/songs/forms/editsongform.py index 36ae46e41..d021c7936 100644 --- a/openlp/plugins/songs/forms/editsongform.py +++ b/openlp/plugins/songs/forms/editsongform.py @@ -367,6 +367,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog): if text in self.authors: # Index 0 is a blank string, so add 1 item = self.authors.index(text) + 1 + else: + item = 0 if item == 0 and text: if QtGui.QMessageBox.question(self, translate('SongsPlugin.EditSongForm', 'Add Author'),