Skip to content
Snippets Groups Projects
Commit e22a7ba9 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

migrationEnded: force reload of all account details

Change-Id: Ia2b663b6ec3addb173fe44f6ced0fdf0554fcd5a
parent 99aece5b
No related branches found
No related tags found
No related merge requests found
......@@ -536,6 +536,8 @@ void
NewAccountModelPimpl::slotMigrationEnded(const std::string& accountId, bool ok)
{
if (ok) {
// Previous account was incorrect, force a full reload
removeFromAccounts(accountId);
addToAccounts(accountId);
}
emit linked.migrationEnded(accountId, ok);
......@@ -564,7 +566,7 @@ NewAccountModelPimpl::addToAccounts(const std::string& accountId,
auto it = accounts.emplace(accountId, std::make_pair(account::Info(), db));
if (!it.second) {
qDebug("failed to add new account: id already present in map");
qWarning("failed to add new account: id already present in map");
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment