Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1532,7 +1532,7 @@ QScriptValue ScriptEngine::fetchModuleSource(const QString& modulePath, const bo · 1531 unmodified lines | ||
| 1532 | 1532 | qCDebug(scriptengine_module) << "require.requestScript -- clearing cache for" << modulePath; |
| 1533 | 1533 | scriptCache->deleteScript(modulePath); |
| 1534 | 1534 | } |
| 1535 | − BatchLoader* loader = new BatchLoader({ modulePath }); | |
| 1535 | + BatchLoader* loader = new BatchLoader(QList<QUrl>({ modulePath })); | |
| 1536 | 1536 | connect(loader, &BatchLoader::finished, this, onload); |
| 1537 | 1537 | connect(this, &QObject::destroyed, loader, &QObject::deleteLater); |
| 1538 | 1538 | // fail faster? (since require() blocks the engine thread while resolving dependencies) |