X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/4cf57e6db08da791233d75237f62e74bc88dd427..18fecf25efe710631fabecbb9f689c2997fdfe18:/BoxItem.cpp?ds=sidebyside diff --git a/BoxItem.cpp b/BoxItem.cpp index 34b567a..4471c86 100644 --- a/BoxItem.cpp +++ b/BoxItem.cpp @@ -572,11 +572,14 @@ void BoxItem::contextMenuEvent(QGraphicsSceneContextMenuEvent * event) { } } - if (iface->getInputModifier() != NULL) { - removeModifier = menu.addAction("Remove input modifier"); - } - if (iface->getInputModifier() != NULL) { - showModifier = menu.addAction("Show input modifier parameters"); + if (iface->getAssociatedIface() != NULL) { + ConnectedInterface* assoIface = AI_TO_CON(iface->getAssociatedIface()); + if (assoIface->getInputModifier() != NULL) { + removeModifier = menu.addAction("Remove input modifier"); + } + if (assoIface->getInputModifier() != NULL) { + showModifier = menu.addAction("Show input modifier parameters"); + } } }