mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 03:27:40 +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 );
|
||||
#else
|
||||
QJson::Serializer serializer;
|
||||
return serializer.serialize( variant, ok );
|
||||
QByteArray ret = serializer.serialize(variant);
|
||||
if ( ok != NULL )
|
||||
{
|
||||
*ok = !ret.isNull();
|
||||
}
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user