fix reload of scripts

This commit is contained in:
ZappoMan 2014-02-24 10:10:00 -08:00
parent 3d1c4251e3
commit 6ea2c81e68

View file

@ -4201,7 +4201,9 @@ void Application::reloadAllScripts() {
scriptAction->activate(QAction::Trigger);
qDebug() << "stopping script..." << scriptAction->text();
}
_activeScripts.clear();
// NOTE: we don't need to clear the _activeScripts list because that is handled on script shutdown.
foreach (QString scriptName, reloadList){
qDebug() << "reloading script..." << scriptName;
loadScript(scriptName);