Showing the changes to libraries/script-engine/src/ScriptEngines.cpp (1 of 2 files). Show all
Unified · Split
| @@ -319,13 +319,10 @@ void ScriptEngines::loadScripts() { · 318 unmodified lines | |||
| 319 | 319 | ||
| 320 | // loads all saved scripts | 320 | // loads all saved scripts |
| 321 | auto runningScripts = runningScriptsHandle.get(); | 321 | auto runningScripts = runningScriptsHandle.get(); |
| 322 | if (runningScripts.empty()) { | ||
| 323 | loadDefaultScripts(); | ||
| 324 | return; | ||
| 325 | } | ||
| 326 | 322 | ||
| 327 | for (auto script : runningScripts) { | 323 | for (auto script : runningScripts) { |
| 328 | auto string = script.toString(); | 324 | auto string = script.toString(); |
| 325 | qDebug() << string; | ||
| 329 | if (!string.isEmpty()) { | 326 | if (!string.isEmpty()) { |
| 330 | loadScript(string); | 327 | loadScript(string); |
| 331 | } | 328 | } |