mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-17 10:29:21 +02:00
bug 2090332
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
2008-09-13 Vadim Kurland <vadim@vk.crocodile.org>
|
||||
|
||||
* FindWhereUsedWidget.cpp (FindWhereUsedWidget::showObject): fixed
|
||||
bug #2090332: "Where used search function does not always work.".
|
||||
WhereUsed function could not find firewall if it was used in its
|
||||
own rules.
|
||||
|
||||
* PolicyCompiler_PrintRule.cpp (PrintRule::_printTimeInterval):
|
||||
fixed bug (no #): compiler for iptables used date entered for the
|
||||
beginning of the interval in "Time" object both for the beginning
|
||||
|
||||
@@ -138,6 +138,8 @@ void FindWhereUsedWidget::_find(FWObject *obj)
|
||||
mapping.clear();
|
||||
resset.clear();
|
||||
|
||||
if (fwbdebug) qDebug("FindWhereUsedWidget: initiate search for %s",
|
||||
obj->getName().c_str());
|
||||
|
||||
mw->db()->findWhereUsed(obj, mw->db(), resset);
|
||||
|
||||
@@ -156,6 +158,12 @@ void FindWhereUsedWidget::_find(FWObject *obj)
|
||||
r=NULL;
|
||||
rs=NULL;
|
||||
|
||||
|
||||
if (fwbdebug) qDebug("Search result object id=%d type=%s name=%s",
|
||||
o->getId(),
|
||||
o->getTypeName().c_str(),
|
||||
o->getName().c_str());
|
||||
|
||||
// if (findRef(object,o)==NULL) continue;
|
||||
|
||||
if (mw->isSystem(o) || RuleSet::cast(o) ||
|
||||
@@ -252,7 +260,6 @@ void FindWhereUsedWidget::showObject(FWObject* o)
|
||||
RuleSetView *rsv = mw->activeProject()->getCurrentRuleSetView();
|
||||
rsv->selectRE( ref );
|
||||
rsv->setFocus ( Qt::MouseFocusReason );
|
||||
// mw->selectRules();
|
||||
if (mw->isEditorVisible())
|
||||
{
|
||||
mw->editObject( object );
|
||||
|
||||
Reference in New Issue
Block a user