forked from openlp/openlp
Added an else statement just to make sure we are setting the item index.
This commit is contained in:
parent
591d70cde6
commit
58c2cd34b1
@ -367,6 +367,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
if text in self.authors:
|
if text in self.authors:
|
||||||
# Index 0 is a blank string, so add 1
|
# Index 0 is a blank string, so add 1
|
||||||
item = self.authors.index(text) + 1
|
item = self.authors.index(text) + 1
|
||||||
|
else:
|
||||||
|
item = 0
|
||||||
if item == 0 and text:
|
if item == 0 and text:
|
||||||
if QtGui.QMessageBox.question(self,
|
if QtGui.QMessageBox.question(self,
|
||||||
translate('SongsPlugin.EditSongForm', 'Add Author'),
|
translate('SongsPlugin.EditSongForm', 'Add Author'),
|
||||||
|
Loading…
Reference in New Issue
Block a user