mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-23 19:57:21 +01:00
Fixed #931
This commit is contained in:
parent
e5ef064c0e
commit
164485e1f9
@ -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()));
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user