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:
parent
b7bf5b6241
commit
a0798c2308
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user