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:
@@ -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
|
||||
|
Reference in New Issue
Block a user