prevent multiline game names in the lobby; implement #18

This commit is contained in:
doitux
2012-02-03 22:07:08 +00:00
parent 6af6da5658
commit 3794295db4
2 changed files with 2 additions and 2 deletions
@@ -281,7 +281,7 @@ void gameLobbyDialogImpl::createGame()
gameData.playerActionTimeoutSec = myCreateInternetGameDialog->spinBox_netTimeOutPlayerAction->value();
gameData.gameType = GameType(myCreateInternetGameDialog->comboBox_gameType->itemData(myCreateInternetGameDialog->comboBox_gameType->currentIndex(), Qt::UserRole).toInt());
currentGameName = myCreateInternetGameDialog->lineEdit_gameName->text();
currentGameName = myCreateInternetGameDialog->lineEdit_gameName->text().simplified();
switch (gameData.gameType) {
case GAME_TYPE_NORMAL: {