diff --git a/src/app/ModuleWidget.cpp b/src/app/ModuleWidget.cpp index 1b5246f1..02cf06dd 100644 --- a/src/app/ModuleWidget.cpp +++ b/src/app/ModuleWidget.cpp @@ -766,6 +766,7 @@ void ModuleWidget::disconnectAction() { void ModuleWidget::cloneAction() { // history::ComplexAction history::ComplexAction* h = new history::ComplexAction; + h->name = "duplicate module"; // JSON serialization is the obvious way to do this json_t* moduleJ = toJson(); @@ -789,7 +790,6 @@ void ModuleWidget::cloneAction() { // history::ModuleAdd history::ModuleAdd* hma = new history::ModuleAdd; - hma->name = "clone modules"; hma->setModule(clonedModuleWidget); h->push(hma); diff --git a/src/app/RackWidget.cpp b/src/app/RackWidget.cpp index aebb9205..7bf10a50 100644 --- a/src/app/RackWidget.cpp +++ b/src/app/RackWidget.cpp @@ -760,6 +760,7 @@ void RackWidget::updateModuleOldPositions() { history::ComplexAction* RackWidget::getModuleDragAction() { history::ComplexAction* h = new history::ComplexAction; + h->name = "move modules"; for (ModuleWidget* mw : getModules()) { // Create ModuleMove action if the module was moved.