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

ManagerImpl::registerAccounts(): simplify

parent cb9ea906
...@@ -49,14 +49,14 @@ ...@@ -49,14 +49,14 @@
void void
ManagerImpl::registerAccounts() 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) { a->loadConfig();
if (iter->second) { if (a->isEnabled())
iter->second->loadConfig(); a->registerVoIPLink();
if (iter->second->isEnabled())
iter->second->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