Make "failed to load script" message less intrusive
Showing the changes to libraries/script-engine/src/ScriptManager.cpp (1 of 2 files). Show all
Unified · Split
| @@ -594,6 +594,11 @@ void ScriptManager::loadURL(const QUrl& scriptURL, bool reload) { · 593 unmodified lines | |||
| 594 | if (!success) { | 594 | if (!success) { |
| 595 | scriptErrorMessage("ERROR Loading file (" + status + "):" + url, url, -1); | 595 | scriptErrorMessage("ERROR Loading file (" + status + "):" + url, url, -1); |
| 596 | emit errorLoadingScript(_fileNameString); | 596 | emit errorLoadingScript(_fileNameString); |
| 597 | |||
| 598 | // emitting scriptLoaded will keep Interface from discarding | ||
| 599 | // scripts that might only be temporarily unavailable | ||
| 600 | emit scriptLoaded(url); | ||
| 601 | |||
| 597 | return; | 602 | return; |
| 598 | } | 603 | } |
| 599 | 604 | ||