diff --git a/src/app/Browser.cpp b/src/app/Browser.cpp index 58695f91..083af19a 100644 --- a/src/app/Browser.cpp +++ b/src/app/Browser.cpp @@ -83,9 +83,11 @@ static ModuleWidget* chooseModel(plugin::Model* model) { mi.lastAdded = system::getUnixTime(); // Create Module and ModuleWidget + INFO("Creating module %s", model->getFullName().c_str()); engine::Module* module = model->createModule(); APP->engine->addModule(module); + INFO("Creating module widget %s", model->getFullName().c_str()); ModuleWidget* moduleWidget = model->createModuleWidget(module); APP->scene->rack->addModuleAtMouse(moduleWidget); @@ -189,6 +191,7 @@ struct ModelBox : widget::OpaqueWidget { mwc = new ModuleWidgetContainer; fb->addChild(mwc); + INFO("Creating module widget %s", model->getFullName().c_str()); moduleWidget = model->createModuleWidget(NULL); mwc->addChild(moduleWidget); mwc->box.size = moduleWidget->box.size; diff --git a/src/app/ModuleWidget.cpp b/src/app/ModuleWidget.cpp index f8f70952..495c9bb6 100644 --- a/src/app/ModuleWidget.cpp +++ b/src/app/ModuleWidget.cpp @@ -782,6 +782,7 @@ void ModuleWidget::cloneAction(bool cloneCables) { engine::Module::jsonStripIds(moduleJ); // Clone Module + INFO("Creating module %s", model->getFullName().c_str()); engine::Module* clonedModule = model->createModule(); // Set ID here so we can copy module storage dir @@ -798,6 +799,7 @@ void ModuleWidget::cloneAction(bool cloneCables) { APP->engine->addModule(clonedModule); // Clone ModuleWidget + INFO("Creating module widget %s", model->getFullName().c_str()); ModuleWidget* clonedModuleWidget = model->createModuleWidget(clonedModule); APP->scene->rack->addModuleAtMouse(clonedModuleWidget); diff --git a/src/app/RackWidget.cpp b/src/app/RackWidget.cpp index b723c972..b2a05fc2 100644 --- a/src/app/RackWidget.cpp +++ b/src/app/RackWidget.cpp @@ -43,11 +43,13 @@ struct RackWidget::Internal { static ModuleWidget* moduleWidgetFromJson(json_t* moduleJ) { plugin::Model* model = plugin::modelFromJson(moduleJ); assert(model); + INFO("Creating module %s", model->getFullName().c_str()); engine::Module* module = model->createModule(); assert(module); module->fromJson(moduleJ); // Create ModuleWidget + INFO("Creating module widget %s", model->getFullName().c_str()); ModuleWidget* moduleWidget = module->model->createModuleWidget(module); assert(moduleWidget); return moduleWidget; @@ -361,6 +363,7 @@ void RackWidget::fromJson(json_t* rootJ) { } // Create ModuleWidget + INFO("Creating module widget %s", module->model->getFullName().c_str()); ModuleWidget* mw = module->model->createModuleWidget(module); // pos diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index 78c019fd..022813a6 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -1230,6 +1230,7 @@ void Engine::fromJson(json_t* rootJ) { } // Create module + INFO("Creating module %s", model->getFullName().c_str()); Module* module = model->createModule(); assert(module); diff --git a/src/history.cpp b/src/history.cpp index f042cd9a..eb30c7e5 100644 --- a/src/history.cpp +++ b/src/history.cpp @@ -61,6 +61,7 @@ void ModuleAdd::undo() { } void ModuleAdd::redo() { + INFO("Creating module %s", model->getFullName().c_str()); engine::Module* module = model->createModule(); module->id = moduleId; try { @@ -71,6 +72,7 @@ void ModuleAdd::redo() { } APP->engine->addModule(module); + INFO("Creating module widget %s", model->getFullName().c_str()); app::ModuleWidget* mw = model->createModuleWidget(module); mw->box.pos = pos; APP->scene->rack->addModule(mw);