}
}
- 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");
+ }
}
}