History

Re-download scripts upon Reload All

David Rowe committed 11 years ago

Commit f220d401 parent 2ab3f423 files · +12 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Application.cpp+3−0
@@ -4344,6 +4344,8 @@ void Application::scriptFinished(const QString& scriptName) { · 4343 unmodified lines
43444344 }
43454345
43464346 void Application::stopAllScripts(bool restart) {
4347+ auto scriptCache = DependencyManager::get<ScriptCache>();
4348+
43474349 // stops all current running scripts
43484350 for (QHash<QString, ScriptEngine*>::const_iterator it = _scriptEnginesHash.constBegin();
43494351 it != _scriptEnginesHash.constEnd(); it++) {
@@ -4351,6 +4353,7 @@ void Application::stopAllScripts(bool restart) { · 1 unmodified line
43514353 continue;
43524354 }
43534355 if (restart && it.value()->isUserLoaded()) {
4356+ scriptCache->deleteScript(it.key());
43544357 connect(it.value(), SIGNAL(finished(const QString&)), SLOT(loadScript(const QString&)));
43554358 }
43564359 it.value()->stop();