At the very least we should match the gameserver length which seems to be 40, not 60
authornemo
Sat, 25 Nov 2017 11:28:44 -0500
changeset 12845 b63ec501490b
parent 12844 22cc3d82905a
child 12846 e5c461729fe3
At the very least we should match the gameserver length which seems to be 40, not 60
QTfrontend/ui/page/pagenetgame.cpp
QTfrontend/ui/widget/roomnameprompt.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);
--- 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);