Commit e789603e authored by Rafaël Carré's avatar Rafaël Carré

ManagerImpl::registerAccounts(): simplify

parent cb9ea906
......@@ -49,14 +49,14 @@
void
ManagerImpl::registerAccounts()
{
AccountMap::iterator iter;
for (AccountMap::iterator iter = _accountMap.begin(); iter != _accountMap.end(); ++iter) {
Account *a = iter->second;
if (!a)
continue;
for (iter = _accountMap.begin(); iter != _accountMap.end(); ++iter) {
if (iter->second) {
iter->second->loadConfig();
if (iter->second->isEnabled())
iter->second->registerVoIPLink();
}
a->loadConfig();
if (a->isEnabled())
a->registerVoIPLink();
}
}
......
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