A potential fix for bug #812628.

This commit is contained in:
Raoul Snyman 2012-03-22 22:03:11 +02:00
parent 50f3f2c9b8
commit d62fde1237

View File

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