1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Add special error message on NXDOMAIN

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-07-05 07:27:48 +02:00
parent 8e46c78068
commit a8dde773f5

View File

@ -88,7 +88,11 @@ void AddFriendForm::handleDnsLookup()
{ {
const QString idKeyWord("id="); const QString idKeyWord("id=");
if (dns.error() != QDnsLookup::NoError) { if (dns.error() == QDnsLookup::NotFoundError) {
showWarning(tr("This address does not exist","The DNS gives the Tox ID associated to toxme.se addresses"));
return;
}
else if (dns.error() != QDnsLookup::NoError) {
showWarning(tr("Error while looking up DNS","The DNS gives the Tox ID associated to toxme.se addresses")); showWarning(tr("Error while looking up DNS","The DNS gives the Tox ID associated to toxme.se addresses"));
return; return;
} }