QTfrontend/hwform.cpp
changeset 4870 c02406028e02
parent 4845 9a0f5377c529
child 4894 efcea232bbf6
equal deleted inserted replaced
4869:7a720b5d2247 4870:c02406028e02
   695     game->PlayDemo(curritem->data(Qt::UserRole).toString());
   695     game->PlayDemo(curritem->data(Qt::UserRole).toString());
   696 }
   696 }
   697 
   697 
   698 void HWForm::NetConnectServer(const QString & host, quint16 port)
   698 void HWForm::NetConnectServer(const QString & host, quint16 port)
   699 {
   699 {
   700     _NetConnect(host, port, ui.pageOptions->editNetNick->text());
   700     _NetConnect(host, port, ui.pageOptions->editNetNick->text().trimmed());
   701 }
   701 }
   702 
   702 
   703 void HWForm::NetConnectOfficialServer()
   703 void HWForm::NetConnectOfficialServer()
   704 {
   704 {
   705     NetConnectServer("netserver.hedgewars.org", 46631);
   705     NetConnectServer("netserver.hedgewars.org", 46631);