| 907 | } |
| 908 | |
| 909 | void ModuleWidget::bypassAction(bool bypassed) { |
| 910 | assert(module); |
| 911 | |
| 912 | // history::ModuleBypass |
| 913 | history::ModuleBypass* h = new history::ModuleBypass; |
| 914 | h->moduleId = module->id; |
| 915 | h->bypassed = bypassed; |
| 916 | if (!bypassed) |
| 917 | h->name = string::translate("ModuleWidget.history.unbypassModule"); |
| 918 | APP->history->push(h); |
| 919 | |
| 920 | APP->engine->bypassModule(module, bypassed); |
| 921 | } |
| 922 | |
| 923 | void ModuleWidget::removeAction() { |
| 924 | history::ComplexAction* h = new history::ComplexAction; |
no test coverage detected