1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 03:37:15 +01:00

see #2414 permit menu item delete for the AttachedNetworks object

This commit is contained in:
Vadim Kurland 2011-05-15 22:26:46 -07:00
parent edd7f352d0
commit b13e56d7d3
2 changed files with 6 additions and 1 deletions

View File

@ -871,7 +871,6 @@ void ObjectManipulator::getMenuState(bool haveMoveTargets,
moveMenuItem = false;
copyMenuItem = false;
pasteMenuItem = false;
delMenuItem = false;
newMenuItem = false;
continue;
}

View File

@ -302,6 +302,12 @@ FWObject* ObjectManipulator::actuallyPasteTo(FWObject *target,
if (!isObjectAllowed(ta, obj)) return NULL;
// we disable copy/cut/paste/duplicate menu items for objects that
// can't be copied or duplicated in
// ObjectManipulator::getMenuState() but will check here just in
// case
if (AttachedNetworks::isA(obj)) return NULL;
if (fwbdebug)
qDebug() << "ObjectManipulator::actuallyPasteTo"
<< "target=" << target->getPath().c_str()