1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

Migrate port and server to configuration not credentials

This commit is contained in:
Leo Franchi 2012-03-09 14:50:00 -05:00
parent cf5c368499
commit 99aea14b62

@ -232,10 +232,13 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion )
QVariantHash credentials;
credentials[ "username" ] = value( sipPlugin + "/username" );
credentials[ "password" ] = value( sipPlugin + "/password" );
credentials[ "port" ] = value( sipPlugin + "/port" );
credentials[ "server" ] = value( sipPlugin + "/server" );
QVariantHash configuration;
configuration[ "port" ] = value( sipPlugin + "/port" );
configuration[ "server" ] = value( sipPlugin + "/server" );
setValue( QString( "accounts/%1/credentials" ).arg( accountKey ), credentials );
setValue( QString( "accounts/%1/configuration" ).arg( accountKey ), configuration );
setValue( QString( "accounts/%1/accountfriendlyname" ).arg( accountKey ), value( sipPlugin + "/username" ) );
}