Fixed bug: stop parse window list when a property was found.

git-svn-id: http://yate.null.ro/svn/yate/trunk@2346 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2008-11-17 14:23:05 +00:00
parent 0aa68ab549
commit 56ce66f169
1 changed files with 2 additions and 2 deletions

View File

@ -1605,10 +1605,10 @@ bool Client::getProperty(const String& name, const String& item, String& value,
return wnd->getProperty(name,item,value);
++s_changing;
bool ok = false;
for (ObjList* o = m_windows.skipNull(); o; o = o->skipNext()) {
for (ObjList* o = m_windows.skipNull(); o && !ok; o = o->skipNext()) {
wnd = static_cast<Window*>(o->get());
if (wnd != skip)
ok = wnd->getProperty(name,item,value) || ok;
ok = wnd->getProperty(name,item,value);
}
--s_changing;
return ok;