# HG changeset patch # User nemo # Date 1511627324 18000 # Node ID b63ec501490bf694d577f165b6a35740c244b2f1 # Parent 22cc3d82905a4b820e67a39a1738cde74e46ffb4 At the very least we should match the gameserver length which seems to be 40, not 60 diff -r 22cc3d82905a -r b63ec501490b QTfrontend/ui/page/pagenetgame.cpp --- a/QTfrontend/ui/page/pagenetgame.cpp Sat Nov 25 09:40:43 2017 -0500 +++ b/QTfrontend/ui/page/pagenetgame.cpp Sat Nov 25 11:28:44 2017 -0500 @@ -50,7 +50,7 @@ leRoomName = new HistoryLineEdit(this, 10); leRoomName->setWhatsThis(tr("Room name")); - leRoomName->setMaxLength(60); + leRoomName->setMaxLength(40); leRoomName->setMinimumWidth(400); leRoomName->setMaximumWidth(600); leRoomName->setFixedHeight(30); diff -r 22cc3d82905a -r b63ec501490b QTfrontend/ui/widget/roomnameprompt.cpp --- a/QTfrontend/ui/widget/roomnameprompt.cpp Sat Nov 25 09:40:43 2017 -0500 +++ b/QTfrontend/ui/widget/roomnameprompt.cpp Sat Nov 25 11:28:44 2017 -0500 @@ -48,7 +48,8 @@ // Input box leRoomName = new QLineEdit(this); leRoomName->setText(roomName); - leRoomName->setMaxLength(59); // It didn't like 60 :( + //leRoomName->setMaxLength(59); // It didn't like 60 :( + leRoomName->setMaxLength(40); leRoomName->setStyleSheet("QLineEdit { padding: 3px; }"); leRoomName->selectAll(); dialogLayout->addWidget(leRoomName);