History

Don't run Script Editor scripts from the cache

David Rowe committed 11 years ago

Commit fed5e8e1 parent 7060bef1 file · +2 −1Browse files

Showing the changes to interface/src/ui/ScriptEditorWidget.cpp (1 of 1 file). Show all

Unified · Split

interface/src/ui/ScriptEditorWidget.cpp+2−1
@@ -97,7 +97,8 @@ bool ScriptEditorWidget::setRunning(bool run) { · 96 unmodified lines
9797
9898 if (run) {
9999 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);
101102 connect(_scriptEngine, &ScriptEngine::runningStateChanged, this, &ScriptEditorWidget::runningStateChanged);
102103 connect(_scriptEngine, &ScriptEngine::errorMessage, this, &ScriptEditorWidget::onScriptError);
103104 connect(_scriptEngine, &ScriptEngine::printedMessage, this, &ScriptEditorWidget::onScriptPrint);