1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

check if JsonDocument is null in JsonWrapper

This commit is contained in:
Stefan Derkits
2014-04-27 19:15:21 +02:00
parent cbd0f2a5b2
commit afccb15e18

View File

@@ -109,7 +109,7 @@ toJson( const QVariant &variant, bool* ok )
QJsonDocument doc = QJsonDocument::fromVariant( variant );
if ( ok != NULL )
{
*ok = true;
*ok = !doc.isNull();
}
return doc.toJson();
#else