Re: Determine a menu's caller, multiple buttons same menu (updated)
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.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks