Added a comment referencing bug #812628 so that we know why we added a seemingly redundant if statement.

This commit is contained in:
Raoul Snyman 2012-03-22 22:25:11 +02:00
parent 5a42c87a92
commit 591d70cde6

View File

@ -362,6 +362,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
def onAuthorAddButtonClicked(self):
item = int(self.authorsComboBox.currentIndex())
text = unicode(self.authorsComboBox.currentText()).strip(u' \r\n\t')
# This if statement is for OS X, which doesn't seem to work well with
# the QCompleter autocompletion class. See bug #812628.
if text in self.authors:
# Index 0 is a blank string, so add 1
item = self.authors.index(text) + 1