bugfix 2612

This commit is contained in:
2008-05-31 12:18:40 +00:00
parent 8689d3fe66
commit 97f8d72861
2 changed files with 37 additions and 1 deletions
+35
View File
@@ -1052,9 +1052,18 @@ QAction *movID;
if ( (Firewall::isA(currentObj) || Host::isA(currentObj)) &&
! currentObj->isReadOnly() )
{
newID1=popup->addAction( tr("Add Interface"), this ,
SLOT( newInterface() ) );
}
if ((Firewall::isA(currentObj) &&! currentObj->isReadOnly()))
{
newID1=popup->addAction( tr("Add Policy Rule Set"), this ,
SLOT( newPolicyRuleSet() ) );
newID1=popup->addAction( tr("Add NAT Rule Set"), this ,
SLOT( newNATRuleSet() ) );
}
if (Interface::isA(currentObj) && ! currentObj->isReadOnly())
{
newID1=popup->addAction( tr("Add IP Address"), this ,
@@ -2788,6 +2797,31 @@ void ObjectManipulator::newLibrary()
}
void ObjectManipulator::newPolicyRuleSet ()
{
if ( currentObj->isReadOnly() ) return;
FWObject *o=createObject(currentObj,Policy::TYPENAME,tr("New Policy"));
if (o!=NULL)
{
openObject(o);
editObject(o);
}
}
void ObjectManipulator::newNATRuleSet ()
{
if ( currentObj->isReadOnly() ) return;
FWObject *o=createObject(currentObj,NAT::TYPENAME,tr("New NAT"));
if (o!=NULL)
{
openObject(o);
editObject(o);
}
}
void ObjectManipulator::newFirewall()
{
// QVector <ObjectManipulator*> oms = getAllMdiObjectManipulators();
@@ -2968,6 +3002,7 @@ void ObjectManipulator::newAddressTable()
}
}
void ObjectManipulator::newInterfaceAddress()
{
if ( currentObj->isReadOnly() ) return;
+2 -1
View File
@@ -195,7 +195,8 @@ public slots:
void newServiceGroup();
void newInterval();
void newPolicyRuleSet ();
void newNATRuleSet ();
void duplicateObj(QAction*);
void duplicateObjUnderSameParent();
void moveObj(QAction*);