1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-03 13:30:26 +01:00
This commit is contained in:
David Sansome 2015-11-21 11:32:34 +11:00
parent 50539ab46b
commit dd45181f4a

View File

@ -116,7 +116,12 @@ toJson( const QVariant &variant, bool* ok )
return doc.toJson( QJsonDocument::Compact ); return doc.toJson( QJsonDocument::Compact );
#else #else
QJson::Serializer serializer; QJson::Serializer serializer;
return serializer.serialize( variant, ok ); QByteArray ret = serializer.serialize(variant);
if ( ok != NULL )
{
*ok = !ret.isNull();
}
return ret;
#endif #endif
} }