Added an else statement just to make sure we are setting the item index.

This commit is contained in:
Raoul Snyman 2012-03-22 22:26:14 +02:00
parent 591d70cde6
commit 58c2cd34b1
1 changed files with 2 additions and 0 deletions

View File

@ -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'),