prevent multiline game names in the lobby; implement #18
This commit is contained in:
@@ -281,7 +281,7 @@ void gameLobbyDialogImpl::createGame()
|
|||||||
gameData.playerActionTimeoutSec = myCreateInternetGameDialog->spinBox_netTimeOutPlayerAction->value();
|
gameData.playerActionTimeoutSec = myCreateInternetGameDialog->spinBox_netTimeOutPlayerAction->value();
|
||||||
gameData.gameType = GameType(myCreateInternetGameDialog->comboBox_gameType->itemData(myCreateInternetGameDialog->comboBox_gameType->currentIndex(), Qt::UserRole).toInt());
|
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) {
|
switch (gameData.gameType) {
|
||||||
case GAME_TYPE_NORMAL: {
|
case GAME_TYPE_NORMAL: {
|
||||||
|
|||||||
@@ -3426,7 +3426,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>7</number>
|
<number>3650</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="value">
|
<property name="value">
|
||||||
<number>2</number>
|
<number>2</number>
|
||||||
|
|||||||
Reference in New Issue
Block a user