1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02:00

Enable config upgrade path.

This commit is contained in:
Teo Mrnjavac
2013-05-22 19:53:48 +02:00
parent c86edcd31a
commit 818d44f2d0
2 changed files with 2 additions and 2 deletions

View File

@@ -629,7 +629,7 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion )
{ {
QKeychain::WritePasswordJob* j = new QKeychain::WritePasswordJob( QLatin1String( "tomahawkaccounts" ), this ); QKeychain::WritePasswordJob* j = new QKeychain::WritePasswordJob( QLatin1String( "tomahawkaccounts" ), this );
j->setKey( account ); j->setKey( account );
j->setAutoDelete( false ); j->setAutoDelete( true );
QByteArray data; QByteArray data;
QDataStream ds( &data, QIODevice::WriteOnly ); QDataStream ds( &data, QIODevice::WriteOnly );

View File

@@ -28,7 +28,7 @@
#include <QtNetwork/QNetworkProxy> #include <QtNetwork/QNetworkProxy>
#include <QStringList> #include <QStringList>
#define TOMAHAWK_SETTINGS_VERSION 14 #define TOMAHAWK_SETTINGS_VERSION 15
/** /**
* Convenience wrapper around QSettings for tomahawk-specific config * Convenience wrapper around QSettings for tomahawk-specific config