fixed bug 1022125 (Authors display name is not automatically entered)

bzr-revno: 2020
Fixes: https://launchpad.net/bugs/1022125
This commit is contained in:
Andreas Preikschat 2012-07-08 15:06:56 +02:00
commit a1610f71d4

View File

@ -61,14 +61,14 @@ class AuthorsForm(QtGui.QDialog, Ui_AuthorsDialog):
def onFirstNameEditTextEdited(self, display_name): def onFirstNameEditTextEdited(self, display_name):
if not self._autoDisplayName: if not self._autoDisplayName:
return return
if not self.lastNameEdit.text(): if self.lastNameEdit.text():
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, display_name): def onLastNameEditTextEdited(self, display_name):
if not self._autoDisplayName: if not self._autoDisplayName:
return return
if not self.firstNameEdit.text(): if self.firstNameEdit.text():
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)