Fix for stopping scripts on Windows.

This commit is contained in:
Andrzej Kapolka 2014-05-17 18:45:54 -07:00
parent 86f020dd25
commit c8f2dae7bd

View file

@ -3422,8 +3422,9 @@ ScriptEngine* Application::loadScript(const QString& scriptName, bool loadScript
} }
// start the script on a new thread... // start the script on a new thread...
ScriptEngine* scriptEngine = new ScriptEngine(QUrl(scriptName), &_controllerScriptingInterface); QUrl scriptUrl(scriptName);
_scriptEnginesHash.insert(scriptName, scriptEngine); ScriptEngine* scriptEngine = new ScriptEngine(scriptUrl, &_controllerScriptingInterface);
_scriptEnginesHash.insert(scriptUrl.toString(), scriptEngine);
if (!scriptEngine->hasScript()) { if (!scriptEngine->hasScript()) {
qDebug() << "Application::loadScript(), script failed to load..."; qDebug() << "Application::loadScript(), script failed to load...";