1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 19:57:21 +01:00
This commit is contained in:
Roman Bovsunivskiy 2009-12-19 15:49:39 +00:00
parent e5ef064c0e
commit 164485e1f9
2 changed files with 15 additions and 1 deletions

View File

@ -697,7 +697,20 @@ void ObjectManipulator::contextMenuRequested(const QPoint &pos)
(ObjectGroup::cast(currentObj)!=NULL &&
currentObj->getName()=="Firewalls"))
{
popup_menu->addAction( tr("New cluster from selected firewalls"), this, SLOT( newClusterFromSelected() ) );
bool canCreateCluster = true;
if (getCurrentObjectTree()->getNumSelected() > 1)
{
foreach( FWObject *obj, getCurrentObjectTree()->getSelectedObjects())
{
if (!Firewall::isA(obj))
{
canCreateCluster = false;
break;
}
}
} else canCreateCluster = false;
if (canCreateCluster)
popup_menu->addAction( tr("New cluster from selected firewalls"), this, SLOT( newClusterFromSelected() ) );
popup_menu->addSeparator();
popup_menu->addAction( tr("Compile"), this, SLOT( compile()));
popup_menu->addAction( tr("Install"), this, SLOT( install()));

View File

@ -495,6 +495,7 @@ win32:PRE_TARGETDEPS = ../common/release/common.lib \
../pflib/libfwbpf.a \
../cisco_lib/libfwbcisco.a \
../compiler_lib/libcompilerdriver.a
macx:LIBS += -framework Carbon
RESOURCES += MainRes.qrc
TRANSLATIONS = fwbuilder_ru.ts \
fwbuilder_ja.ts