Showing the changes to libraries/script-engine/src/ScriptManager.cpp (1 of 2 files). Show all
Unified · Split
| @@ -579,6 +579,11 @@ void ScriptManager::loadURL(const QUrl& scriptURL, bool reload) { · 578 unmodified lines | ||
| 579 | 579 | if (!success) { |
| 580 | 580 | scriptErrorMessage("ERROR Loading file (" + status + "):" + url, url, -1); |
| 581 | 581 | emit errorLoadingScript(_fileNameString); |
| 582 | + | |
| 583 | + // emitting scriptLoaded will keep Interface from discarding | |
| 584 | + // scripts that might only be temporarily unavailable | |
| 585 | + emit scriptLoaded(url); | |
| 586 | + | |
| 582 | 587 | return; |
| 583 | 588 | } |
| 584 | 589 | |