From 5e94179ef040c72123036cdf553f199d4a2c91ef Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Mon, 9 Jun 2008 18:56:14 +0000 Subject: [PATCH] added debug print for bug 2655 --- src/gui/FindObjectWidget.cpp | 3 +-- src/gui/ProjectPanel.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gui/FindObjectWidget.cpp b/src/gui/FindObjectWidget.cpp index e569d1015..e2ca5b26f 100644 --- a/src/gui/FindObjectWidget.cpp +++ b/src/gui/FindObjectWidget.cpp @@ -349,8 +349,6 @@ loop: ++treeSeeker; - showObject(o); - if (fwbdebug) { qDebug("Found object: o=%p id=%s name=%s type=%s", @@ -358,6 +356,7 @@ loop: FWObjectDatabase::getStringId(o->getId()).c_str(), o->getName().c_str(),o->getTypeName().c_str()); } + showObject(o); } bool FindObjectWidget::validateReplaceObject() diff --git a/src/gui/ProjectPanel.cpp b/src/gui/ProjectPanel.cpp index ad95a48a8..3ef70393b 100644 --- a/src/gui/ProjectPanel.cpp +++ b/src/gui/ProjectPanel.cpp @@ -610,6 +610,13 @@ void ProjectPanel::ensureObjectVisibleInRules(FWReference *obj) while (p && RuleSet::cast(p)==NULL ) p=p->getParent(); 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]; if (rsv==NULL)