Skip to content
Snippets Groups Projects
Commit e789603e authored by Rafaël Carré's avatar Rafaël Carré
Browse files

ManagerImpl::registerAccounts(): simplify

parent cb9ea906
Branches
Tags
No related merge requests found
...@@ -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();
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment