1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-07 17:42:35 +02:00

Use new JSON parser wrapper in ipDetected

This commit is contained in:
Uwe L. Korn 2014-04-12 08:44:09 +01:00
parent b7bf5b6241
commit a0798c2308

View File

@ -980,9 +980,9 @@ Servent::ipDetected()
if ( reply->error() == QNetworkReply::NoError )
{
QJson::Parser p;
bool ok;
const QVariantMap res = p.parse( reply, &ok ).toMap();
// We are called when the NetworkReply has finished so we should have all data available.
const QVariantMap res = TomahawkUtils::parseJson( reply->readAll(), &ok ).toMap();
if ( !ok )
{
tLog() << Q_FUNC_INFO << "Failed parsing ip-autodetection response";