| 928 | } |
| 929 | |
| 930 | void ModuleWidget::bypassAction(bool bypassed) { |
| 931 | assert(module); |
| 932 | |
| 933 | // history::ModuleBypass |
| 934 | history::ModuleBypass* h = new history::ModuleBypass; |
| 935 | h->moduleId = module->id; |
| 936 | h->bypassed = bypassed; |
| 937 | if (!bypassed) |
| 938 | h->name = "un-bypass module"; |
| 939 | APP->history->push(h); |
| 940 | |
| 941 | APP->engine->bypassModule(module, bypassed); |
| 942 | } |
| 943 | |
| 944 | void ModuleWidget::removeAction() { |
| 945 | history::ComplexAction* h = new history::ComplexAction; |
no test coverage detected