Commit abf5533a authored by Martin Klapetek's avatar Martin Klapetek

[createaccount] If there's only one service for account, use it as default

The services (should) contain the auth parameters, so in order to get
proper auth data, AccountService needs to use that service.
parent 0f69254c
......@@ -66,6 +66,9 @@ void CreateAccount::processSession()
{
m_account = m_manager->createAccount(m_providerName);
Accounts::Service service;
if (m_account->services().size() == 1) {
service = m_account->services().at(0);
}
m_accInfo = new Accounts::AccountService(m_account, service, this);
const QString pluginName = m_account->provider().pluginName();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment