Browse Source

Merge pull request #2981 from VittGam:patch-1

Fix toxURI parsing.
pull/2771/merge
Zetok Zalbavar 10 years ago
parent
commit
1eb68542df
No known key found for this signature in database
GPG Key ID: C953D3880212068A
  1. 6
      src/net/toxuri.cpp

6
src/net/toxuri.cpp

@ -57,11 +57,7 @@ bool handleToxURI(const QString &toxURI) @@ -57,11 +57,7 @@ bool handleToxURI(const QString &toxURI)
while (!core->isReady())
qApp->processEvents();
QString toxaddr;
if (toxURI.startsWith("tox:"))
toxaddr = toxURI.mid(6);
else
toxaddr = toxURI.mid(4);
QString toxaddr = toxURI.mid(4);
QString toxId = Toxme::lookup(toxaddr).toString();
if (toxId.isEmpty())

Loading…
Cancel
Save