Skip to content
Snippets Groups Projects
Unverified Commit ce8c7161 authored by aviau's avatar aviau
Browse files

Detect removed accounts by other clients or dring

This patch makes sure that LRC will notice accounts that are removed by
other clients or by the daemon.

Change-Id: Icf766614d54f7163311fa1862ace3b65bc655750
Tuleap: #995
parent c2943f3f
No related branches found
No related tags found
No related merge requests found
......@@ -457,6 +457,14 @@ void AccountModel::updateAccounts()
qDebug() << "Updating all accounts";
ConfigurationManagerInterface& configurationManager = ConfigurationManager::instance();
QStringList accountIds = configurationManager.getAccountList();
// Detect removed accounts
foreach(Account* account, d_ptr->m_lAccounts) {
if (accountIds.indexOf(account->id()) == -1) {
remove(account);
}
}
//m_lAccounts.clear();
for (int i = 0; i < accountIds.size(); ++i) {
Account* acc = getById(accountIds[i].toLatin1());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment