From 99aea14b620d4301272a8175d334ddcfc708fb59 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 9 Mar 2012 14:50:00 -0500 Subject: [PATCH] Migrate port and server to configuration not credentials --- src/libtomahawk/tomahawksettings.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/tomahawksettings.cpp b/src/libtomahawk/tomahawksettings.cpp index 403cba64d..a8c664e18 100644 --- a/src/libtomahawk/tomahawksettings.cpp +++ b/src/libtomahawk/tomahawksettings.cpp @@ -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" ) ); }