added debug print for bug 2655

This commit is contained in:
Vadim Kurland
2008-06-09 18:56:14 +00:00
parent a45dbd105d
commit 5e94179ef0
2 changed files with 8 additions and 2 deletions
+1 -2
View File
@@ -349,8 +349,6 @@ loop:
++treeSeeker; ++treeSeeker;
showObject(o);
if (fwbdebug) if (fwbdebug)
{ {
qDebug("Found object: o=%p id=%s name=%s type=%s", qDebug("Found object: o=%p id=%s name=%s type=%s",
@@ -358,6 +356,7 @@ loop:
FWObjectDatabase::getStringId(o->getId()).c_str(), FWObjectDatabase::getStringId(o->getId()).c_str(),
o->getName().c_str(),o->getTypeName().c_str()); o->getName().c_str(),o->getTypeName().c_str());
} }
showObject(o);
} }
bool FindObjectWidget::validateReplaceObject() bool FindObjectWidget::validateReplaceObject()
+7
View File
@@ -610,6 +610,13 @@ void ProjectPanel::ensureObjectVisibleInRules(FWReference *obj)
while (p && RuleSet::cast(p)==NULL ) p=p->getParent(); while (p && RuleSet::cast(p)==NULL ) p=p->getParent();
if (p==NULL) return; // something is broken if (p==NULL) return; // something is broken
if (fwbdebug)
qDebug("ProjectPanel::ensureObjectVisibleInRules: "
"RuleSet p=%p id=%s name=%s type=%s",
p,
FWObjectDatabase::getStringId(p->getId()).c_str(),
p->getName().c_str(), p->getTypeName().c_str());
RuleSetView *rsv = ruleSetViews[p]; RuleSetView *rsv = ruleSetViews[p];
if (rsv==NULL) if (rsv==NULL)