forked from openlp/openlp
removed not needed variable
This commit is contained in:
parent
999af73d14
commit
b797b5e341
@ -57,19 +57,17 @@ class AuthorsForm(QtGui.QDialog, Ui_AuthorsDialog):
|
|||||||
self.firstNameEdit.setFocus()
|
self.firstNameEdit.setFocus()
|
||||||
return QtGui.QDialog.exec_(self)
|
return QtGui.QDialog.exec_(self)
|
||||||
|
|
||||||
def onFirstNameEditTextEdited(self, text):
|
def onFirstNameEditTextEdited(self, display_name):
|
||||||
if not self._autoDisplayName:
|
if not self._autoDisplayName:
|
||||||
return
|
return
|
||||||
display_name = text
|
if not self.lastNameEdit.text():
|
||||||
if self.lastNameEdit.text() != u'':
|
|
||||||
display_name = display_name + u' ' + self.lastNameEdit.text()
|
display_name = display_name + u' ' + self.lastNameEdit.text()
|
||||||
self.displayEdit.setText(display_name)
|
self.displayEdit.setText(display_name)
|
||||||
|
|
||||||
def onLastNameEditTextEdited(self, text):
|
def onLastNameEditTextEdited(self, display_name):
|
||||||
if not self._autoDisplayName:
|
if not self._autoDisplayName:
|
||||||
return
|
return
|
||||||
display_name = text
|
if not self.firstNameEdit.text():
|
||||||
if self.firstNameEdit.text() != u'':
|
|
||||||
display_name = self.firstNameEdit.text() + u' ' + display_name
|
display_name = self.firstNameEdit.text() + u' ' + display_name
|
||||||
self.displayEdit.setText(display_name)
|
self.displayEdit.setText(display_name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user