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

Tox URI: Handle nonstandard tox:// URI scheme as well

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-06 15:26:48 +01:00
parent c26bec3982
commit 186ce73455
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -36,7 +36,12 @@ void handleToxURI(const QString &toxURI)
qApp->processEvents();
}
QString toxaddr = toxURI.mid(4);
QString toxaddr;
if (toxURI.startsWith("tox://"))
toxaddr = toxURI.mid(6);
else
toxaddr = toxURI.mid(4);
QString toxid = ToxDNS::resolveToxAddress(toxaddr, true).toString();
if (toxid.isEmpty())