equal
deleted
inserted
replaced
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 |