fixes to events

This commit is contained in:
Peter Schojer
2008-05-19 13:14:14 +00:00
parent 665172eed0
commit ae5b44091f
12 changed files with 199 additions and 46 deletions

View File

@@ -93,15 +93,30 @@ void ContainerView::remove(View::Ptr pView)
View::Ptr ContainerView::findChild(const std::string& name) const
{
for (ConstIterator it = begin(); it != end(); ++it)
{
if (*it && (*it)->getName() == name)
for (ConstIterator it = begin(); it != end(); ++it)
{
return *it;
if (*it && (*it)->getName() == name)
{
return *it;
}
}
}
return View::findChild(name);
{
View::Ptr result;
for (ConstIterator it = begin(); it != end(); ++it)
{
if (*it)
{
result = (*it)->findChild(name);
}
if (result)
return result;
}
return View::findChild(name);
}
}