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

Fix tox: url highlighting breaking the :tox: smiley

Fixes #772
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-16 13:50:45 +01:00
parent 7e2dab6676
commit bb48852d87
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -41,6 +41,13 @@ QString MessageAction::getMessage(QString div)
{
QString url = exp.cap();
// If there's a trailing " it's a HTML attribute, e.g. a smiley img's title=":tox:"
if (url == "tox:\"")
{
offset += url.length();
continue;
}
// add scheme if not specified
if (exp.cap(1) == "www.")
url.prepend("http://");