Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all
Unified · Split
| @@ -2247,7 +2247,7 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co · 2246 unmodified lines | ||
| 2247 | 2247 | QTimer timeout; |
| 2248 | 2248 | timeout.setSingleShot(true); |
| 2249 | 2249 | timeout.start(SANDBOX_TIMEOUT); |
| 2250 | − connect(&timeout, &QTimer::timeout, [&sandbox, scriptOrURL]{ | |
| 2250 | + connect(&timeout, &QTimer::timeout, [=, &sandbox]{ | |
| 2251 | 2251 | qCDebug(scriptengine) << "ScriptEngine::entityScriptContentAvailable timeout(" << scriptOrURL << ")"; |
| 2252 | 2252 | |
| 2253 | 2253 | // Guard against infinite loops and non-performant code |