the best way is to redeisgn so actions aren't dependent on things that they should be agnostic of. I mean children should care about parents, and slots shouldnt care about callers. See 'dependency injection/inversion'. If your action needs to know the caller in order to work correctly, then your action doesnt have enough information to begin with.