| 170 | } |
| 171 | |
| 172 | int mitem::execaction(const char *arg1) |
| 173 | { |
| 174 | int result = 0; |
| 175 | if(getaction()) |
| 176 | { |
| 177 | if(curmenu) setcontext("menu", curmenu->name); |
| 178 | push("arg1", arg1); |
| 179 | result = execute(getaction()); |
| 180 | pop("arg1"); |
| 181 | resetcontext(); |
| 182 | } |
| 183 | return result; |
| 184 | } |
| 185 | |
| 186 | bool mitem::isselection() { return parent->allowinput && !parent->hotkeys && parent->items.inrange(parent->menusel) && parent->items[parent->menusel]==this; } |
| 187 |
nothing calls this directly
no test coverage detected