Replace url of link with new one from json.

This commit is contained in:
23rd
2018-09-05 15:37:51 +03:00
parent 83dce820d8
commit fe24d09009
2 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -22,10 +22,11 @@ void LinkResolver::getLinkInfo(const QString url,
QString response = QString();
if (statusCode == 200) {
response = root.value("tooltip").toString();
url = root.value("link").toString();
} else {
response = root.value("message").toString();
}
successCallback(QUrl::fromPercentEncoding(response.toUtf8()));
successCallback(QUrl::fromPercentEncoding(response.toUtf8()), url);
return Success;
});