forked from openlp/openlp
A potential fix for bug #812628.
This commit is contained in:
parent
50f3f2c9b8
commit
d62fde1237
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user