QTfrontend/hwform.cpp
changeset 9063 5cab446e1341
parent 9057 903f50e85144
child 9080 9b42757d7e71
equal deleted inserted replaced
9062:a65492ca1587 9063:5cab446e1341
  1538     if (reason == "Reconnected too fast") { //TODO: this is a hack, which should be remade
  1538     if (reason == "Reconnected too fast") { //TODO: this is a hack, which should be remade
  1539         bool retry = RetryDialog(tr("Hedgewars - Connection error"), tr("You reconnected too fast.\nPlease wait a few seconds and try again."));
  1539         bool retry = RetryDialog(tr("Hedgewars - Connection error"), tr("You reconnected too fast.\nPlease wait a few seconds and try again."));
  1540         if (retry) {
  1540         if (retry) {
  1541             if (hwnet->m_private_game) {
  1541             if (hwnet->m_private_game) {
  1542                 QStringList list = hwnet->getHost().split(":");
  1542                 QStringList list = hwnet->getHost().split(":");
  1543                 NetConnectServer(list.at(0), list.at(1).toShort());
  1543                 NetConnectServer(list.at(0), list.at(1).toUInt());
  1544             } else
  1544             } else
  1545                 NetConnectOfficialServer();
  1545                 NetConnectOfficialServer();
  1546         }
  1546         }
  1547         else {
  1547         else {
  1548             while (ui.Pages->currentIndex() != ID_PAGE_NET
  1548             while (ui.Pages->currentIndex() != ID_PAGE_NET