QTfrontend/net/newnetclient.cpp
changeset 13663 73993abb85d7
parent 13327 b77a9380dd0f
child 13678 1aa5e884326a
equal deleted inserted replaced
13662:2d38dc2d3414 13663:73993abb85d7
   235             break;
   235             break;
   236         case QAbstractSocket::HostNotFoundError:
   236         case QAbstractSocket::HostNotFoundError:
   237             emit disconnected(tr("The host was not found. Please check the host name and port settings."));
   237             emit disconnected(tr("The host was not found. Please check the host name and port settings."));
   238             break;
   238             break;
   239         case QAbstractSocket::ConnectionRefusedError:
   239         case QAbstractSocket::ConnectionRefusedError:
   240             emit disconnected(tr("Connection refused"));
   240             if (getHost() == (QString("%1:%2").arg(NETGAME_DEFAULT_SERVER).arg(NETGAME_DEFAULT_PORT)))
       
   241                 // Error for official server
       
   242                 emit disconnected(tr("The connection was refused by the official server or timed out. Something seems to be wrong with the official server at the moment. This might be a temporary problem. Please try again later."));
       
   243             else
       
   244                 // Error for every other host
       
   245                 emit disconnected(tr("The connection was refused by the host or timed out. This might have one of the following reasons:\n- The Hedgewars Server program does currently not run on the host\n- The specified port number is incorrect\n- There is a temporary network problem\n\nPlease check the host name and port settings and/or try again later."));
   241             break;
   246             break;
   242         default:
   247         default:
   243             emit disconnected(NetSocket.errorString());
   248             emit disconnected(NetSocket.errorString());
   244     }
   249     }
   245 }
   250 }