Showing the changes to interface/src/Application.cpp (1 of 21 files). Show all
Unified · Split
| @@ -7657,7 +7657,7 @@ void Application::registerScriptEngineWithApplicationServices(ScriptManagerPoint · 7656 unmodified lines | |||
| 7657 | 7657 | ||
| 7658 | { | 7658 | { |
| 7659 | auto connection = std::make_shared<QMetaObject::Connection>(); | 7659 | auto connection = std::make_shared<QMetaObject::Connection>(); |
| 7660 | *connection = scriptManager->connect(scriptManager.get(), &ScriptManager::scriptEnding, [scriptManager, connection]() { | 7660 | *connection = scriptManager->connect(scriptManager.get(), &ScriptManager::scriptEnding, [this, scriptManager, connection]() { |
| 7661 | // Request removal of controller routes with callbacks to a given script engine | 7661 | // Request removal of controller routes with callbacks to a given script engine |
| 7662 | auto userInputMapper = DependencyManager::get<UserInputMapper>(); | 7662 | auto userInputMapper = DependencyManager::get<UserInputMapper>(); |
| 7663 | // scheduleScriptEndpointCleanup will have the last instance of shared pointer to script manager | 7663 | // scheduleScriptEndpointCleanup will have the last instance of shared pointer to script manager |