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:
parent
edd7f352d0
commit
b13e56d7d3
@ -871,7 +871,6 @@ void ObjectManipulator::getMenuState(bool haveMoveTargets,
|
||||
moveMenuItem = false;
|
||||
copyMenuItem = false;
|
||||
pasteMenuItem = false;
|
||||
delMenuItem = false;
|
||||
newMenuItem = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user