mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:36:54 +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;
|
qCDebug(scriptengine_module) << "require.requestScript -- clearing cache for" << modulePath;
|
||||||
scriptCache->deleteScript(modulePath);
|
scriptCache->deleteScript(modulePath);
|
||||||
}
|
}
|
||||||
BatchLoader* loader = new BatchLoader({ modulePath });
|
BatchLoader* loader = new BatchLoader(QList<QUrl>({ modulePath }));
|
||||||
connect(loader, &BatchLoader::finished, this, onload);
|
connect(loader, &BatchLoader::finished, this, onload);
|
||||||
connect(this, &QObject::destroyed, loader, &QObject::deleteLater);
|
connect(this, &QObject::destroyed, loader, &QObject::deleteLater);
|
||||||
// fail faster? (since require() blocks the engine thread while resolving dependencies)
|
// fail faster? (since require() blocks the engine thread while resolving dependencies)
|
||||||
|
|
Loading…
Reference in a new issue