mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-03 13:30:26 +01:00
This commit is contained in:
parent
50539ab46b
commit
dd45181f4a
7
3rdparty/libmygpo-qt/qjsonwrapper/Json.cpp
vendored
7
3rdparty/libmygpo-qt/qjsonwrapper/Json.cpp
vendored
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user