Showing the changes to interface/src/ui/ScriptEditorWidget.cpp (1 of 1 file). Show all
Unified · Split
| @@ -97,7 +97,8 @@ bool ScriptEditorWidget::setRunning(bool run) { · 96 unmodified lines | ||
| 97 | 97 | |
| 98 | 98 | if (run) { |
| 99 | 99 | const QString& scriptURLString = QUrl(_currentScript).toString(); |
| 100 | − _scriptEngine = Application::getInstance()->loadScript(scriptURLString, true, true); | |
| 100 | + // Reload script so that an out of date copy is not retrieved from the cache | |
| 101 | + _scriptEngine = Application::getInstance()->loadScript(scriptURLString, true, true, false, true); | |
| 101 | 102 | connect(_scriptEngine, &ScriptEngine::runningStateChanged, this, &ScriptEditorWidget::runningStateChanged); |
| 102 | 103 | connect(_scriptEngine, &ScriptEngine::errorMessage, this, &ScriptEditorWidget::onScriptError); |
| 103 | 104 | connect(_scriptEngine, &ScriptEngine::printedMessage, this, &ScriptEditorWidget::onScriptPrint); |