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-06 04:37:19 +00:00
parent f3a252f813
commit efa0bda4f5
4 changed files with 17 additions and 7 deletions

View File

@ -1 +1 @@
#define BUILD_NUM 1558
#define BUILD_NUM 1559

View File

@ -357,7 +357,16 @@ void ClusterGroupDialog::openParametersEditor()
if (dlg)
{
dlg->exec();
if (dlg->exec() == QDialog::Accepted)
{
// modal dialog, dialog saves data into the object
// update object tree (if protocol type has changed, the
// object properties summary text may have to change too)
mw->activeProject()->updateObjectInTree(obj, true);
changed();
BaseObjectDialog::applyChanges();
}
delete dlg;
}
}

View File

@ -321,7 +321,7 @@ void InterfaceDialog::loadFWObject(FWObject *o)
//apply->setEnabled( false );
init=false;
init = false;
}
void InterfaceDialog::validate(bool *res)
@ -372,8 +372,6 @@ void InterfaceDialog::validate(bool *res)
delete int_prop;
}
void InterfaceDialog::applyChanges()
{
Interface *s = Interface::cast(obj);
@ -451,11 +449,13 @@ void InterfaceDialog::openIfaceDialog()
{
// modal dialog, dialog saves data into the object
// update object tree (if interface type has changed, the object properties
// summary text may have to change too)
// update object tree (if interface type has changed, the
// object properties summary text may have to change too)
mw->activeProject()->updateObjectInTree(obj, true);
changed();
BaseObjectDialog::applyChanges();
}
delete w;
}
catch (FWException &ex)
{

View File

@ -4811,6 +4811,7 @@ void PolicyCompiler_ipt::insertFailoverRule()
Interface *other_iface =
Interface::cast(FWObjectReference::getObject(*it));
assert(other_iface);
if (other_iface->getId() == fw_iface->getId()) continue;
rule = addMgmtRule(other_iface,
fw_iface,
heartbeat_srv,