1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-20 10:17:16 +01:00
This commit is contained in:
Vadim Kurland 2009-10-05 02:18:03 +00:00
parent 03e64c80df
commit 11309ecfc7

View File

@ -242,16 +242,18 @@ void FindWhereUsedWidget::humanizeSearchResults(std::set<FWObject *> &resset)
set<FWObject*>::iterator i = resset.begin();
for (;i!=resset.end();++i)
{
FWObject *obj = NULL;
FWReference *ref = FWReference::cast(*i);
if (ref)
{
FWObject *o = ref->getParent(); // NB! We need parent of this ref.
tmp_res.insert(o);
if (fwbdebug)
qDebug("humanizeSearchResults: adding %s (%s)",
o->getName().c_str(), o->getTypeName().c_str());
obj = ref->getParent(); // NB! We need parent of this ref.
} else
tmp_res.insert(*i);
obj = *i;
if (fwbdebug)
qDebug() << "humanizeSearchResults: adding "
<< obj->getName().c_str()
<< " (" << obj->getTypeName().c_str() << ")";
tmp_res.insert(obj);
}
resset.clear();
resset = tmp_res;