mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-06 08:39:54 +01:00
check if JsonDocument is null in JsonWrapper
This commit is contained in:
parent
cbd0f2a5b2
commit
afccb15e18
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user