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:
parent
8e46c78068
commit
a8dde773f5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user