mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
Remove QJson usage from TomahawkSettings
This commit is contained in:
@@ -32,7 +32,6 @@
|
|||||||
#include "PlaylistInterface.h"
|
#include "PlaylistInterface.h"
|
||||||
#include "Source.h"
|
#include "Source.h"
|
||||||
|
|
||||||
#include <qjson/serializer.h>
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
|
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
|
||||||
#include <qtkeychain/keychain.h>
|
#include <qtkeychain/keychain.h>
|
||||||
#else
|
#else
|
||||||
@@ -643,9 +642,8 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion )
|
|||||||
#if defined( Q_OS_UNIX ) && !defined( Q_OS_MAC )
|
#if defined( Q_OS_UNIX ) && !defined( Q_OS_MAC )
|
||||||
j->setInsecureFallback( true );
|
j->setInsecureFallback( true );
|
||||||
#endif
|
#endif
|
||||||
QJson::Serializer serializer;
|
|
||||||
bool ok;
|
bool ok;
|
||||||
QByteArray data = serializer.serialize( creds, &ok );
|
QByteArray data = TomahawkUtils::toJson( creds, &ok );
|
||||||
|
|
||||||
if ( ok )
|
if ( ok )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user