Better signal for player name determination

This commit is contained in:
Sebastian Lohff 2013-11-24 04:06:33 +01:00
parent 113a0b6c4a
commit a2172a444a
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ class PlayerStartWindow(QtGui.QDialog):
edit = QtGui.QLineEdit(player.name, self) edit = QtGui.QLineEdit(player.name, self)
edit.setStyleSheet("QLineEdit { font-size: 40px; }") edit.setStyleSheet("QLineEdit { font-size: 40px; }")
edit.returnPressed.connect(lambda widget=edit, player=player: player.change_name(edit.text())) edit.editingFinished.connect(lambda widget=edit, player=player: player.change_name(edit.text()))
self.playerGrid.addWidget(edit, row, 1) self.playerGrid.addWidget(edit, row, 1)