Commit 100284eb authored by Martin Klapetek's avatar Martin Klapetek

[createaccount] To enable the account, the selected service must be cleared first

parent abf5533a
......@@ -207,7 +207,6 @@ void CreateAccount::info(const SignOn::IdentityInfo &info)
m_account->setValue(base + i.key(), i.value());
}
m_account->setEnabled(true);
Accounts::ServiceList services = m_account->services();
Q_FOREACH(const Accounts::Service &service, services) {
......@@ -215,6 +214,8 @@ void CreateAccount::info(const SignOn::IdentityInfo &info)
m_account->setEnabled(m_disabledServices.contains(service.name()) ? false : true);
}
m_account->selectService();
m_account->setEnabled(true);
m_account->sync();
connect(m_account, &Accounts::Account::synced, this, &CreateAccount::emitResult);
}
......
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