diff --git a/include/app/RackWidget.hpp b/include/app/RackWidget.hpp index 945d2c2b..75f064f1 100644 --- a/include/app/RackWidget.hpp +++ b/include/app/RackWidget.hpp @@ -70,7 +70,7 @@ struct RackWidget : widget::OpaqueWidget { std::vector getModules(); bool hasModules(); void updateModuleOldPositions(); - history::ComplexAction* getModuleMoveAction(); + history::ComplexAction* getModuleDragAction(); // Module selection methods diff --git a/src/app/Browser.cpp b/src/app/Browser.cpp index 29c2d95a..2ef0d899 100644 --- a/src/app/Browser.cpp +++ b/src/app/Browser.cpp @@ -95,7 +95,7 @@ static ModuleWidget* chooseModel(plugin::Model* model) { APP->scene->rack->updateModuleOldPositions(); APP->scene->rack->addModuleAtMouse(moduleWidget); - h->push(APP->scene->rack->getModuleMoveAction()); + h->push(APP->scene->rack->getModuleDragAction()); // Load template preset moduleWidget->loadTemplate(); diff --git a/src/app/ModuleWidget.cpp b/src/app/ModuleWidget.cpp index 1874403a..495deff0 100644 --- a/src/app/ModuleWidget.cpp +++ b/src/app/ModuleWidget.cpp @@ -442,7 +442,7 @@ void ModuleWidget::onDragEnd(const DragEndEvent& e) { // The next time the module is dragged, it should always move immediately internal->dragEnabled = true; - history::ComplexAction* h = APP->scene->rack->getModuleMoveAction(); + history::ComplexAction* h = APP->scene->rack->getModuleDragAction(); if (!h->isEmpty()) APP->history->push(h); else @@ -818,7 +818,7 @@ void ModuleWidget::cloneAction(bool cloneCables) { ModuleWidget* clonedModuleWidget = model->createModuleWidget(clonedModule); APP->scene->rack->updateModuleOldPositions(); APP->scene->rack->addModuleAtMouse(clonedModuleWidget); - h->push(APP->scene->rack->getModuleMoveAction()); + h->push(APP->scene->rack->getModuleDragAction()); // history::ModuleAdd history::ModuleAdd* hma = new history::ModuleAdd; diff --git a/src/app/RackWidget.cpp b/src/app/RackWidget.cpp index 17bfeb99..311044c6 100644 --- a/src/app/RackWidget.cpp +++ b/src/app/RackWidget.cpp @@ -543,7 +543,7 @@ void RackWidget::pasteModuleJsonAction(json_t* moduleJ) { updateModuleOldPositions(); addModuleAtMouse(mw); - h->push(getModuleMoveAction()); + h->push(getModuleDragAction()); // history::ModuleAdd history::ModuleAdd* ha = new history::ModuleAdd; @@ -822,7 +822,7 @@ void RackWidget::updateModuleOldPositions() { } } -history::ComplexAction* RackWidget::getModuleMoveAction() { +history::ComplexAction* RackWidget::getModuleDragAction() { history::ComplexAction* h = new history::ComplexAction; h->name = "move modules";