mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
use a fully-qualified initializer when constructing BatchLoader
This commit is contained in:
parent
32e450e6c2
commit
e91de1775e
1 changed files with 1 additions and 1 deletions
|
@ -1532,7 +1532,7 @@ QScriptValue ScriptEngine::fetchModuleSource(const QString& modulePath, const bo
|
|||
qCDebug(scriptengine_module) << "require.requestScript -- clearing cache for" << modulePath;
|
||||
scriptCache->deleteScript(modulePath);
|
||||
}
|
||||
BatchLoader* loader = new BatchLoader({ modulePath });
|
||||
BatchLoader* loader = new BatchLoader(QList<QUrl>({ modulePath }));
|
||||
connect(loader, &BatchLoader::finished, this, onload);
|
||||
connect(this, &QObject::destroyed, loader, &QObject::deleteLater);
|
||||
// fail faster? (since require() blocks the engine thread while resolving dependencies)
|
||||
|
|
Loading…
Reference in a new issue