diff --git a/3rdparty/libmygpo-qt/qjsonwrapper/Json.cpp b/3rdparty/libmygpo-qt/qjsonwrapper/Json.cpp index 4a8c2ac36..1b4a79065 100644 --- a/3rdparty/libmygpo-qt/qjsonwrapper/Json.cpp +++ b/3rdparty/libmygpo-qt/qjsonwrapper/Json.cpp @@ -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 }