Fixed bug: update all contact items in the tree when groups list didn't changed.
git-svn-id: http://voip.null.ro/svn/yate@4059 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
b3dbbffda4
commit
08f4ea7f88
|
@ -1163,7 +1163,7 @@ bool ContactList::updateContact(const String& id, const NamedList& params,
|
|||
name().c_str(),id.c_str(),TelEngine::c_safe(groups));
|
||||
if (!groups || m_flatList) {
|
||||
// No group changes or not shown by group. Update all contacts
|
||||
for (int i = 0; !found && i < list.size(); i++)
|
||||
for (int i = 0; i < list.size(); i++)
|
||||
if (list[i]->type() == TypeContact && list[i]->id() == id) {
|
||||
ok = updateContact(*(static_cast<ContactItem*>(list[i])),params) || ok;
|
||||
found = true;
|
||||
|
|
Loading…
Reference in New Issue