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:
parent
c26bec3982
commit
186ce73455
|
@ -36,7 +36,12 @@ void handleToxURI(const QString &toxURI)
|
||||||
qApp->processEvents();
|
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();
|
QString toxid = ToxDNS::resolveToxAddress(toxaddr, true).toString();
|
||||||
|
|
||||||
if (toxid.isEmpty())
|
if (toxid.isEmpty())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user