Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 4 files). Show all
Unified · Split
| @@ -177,10 +177,10 @@ void ScriptEngine::loadURL(const QUrl& scriptURL) { · 176 unmodified lines | ||
| 177 | 177 | qDebug() << "Loading file:" << fileName; |
| 178 | 178 | QTextStream in(&scriptFile); |
| 179 | 179 | _scriptContents = in.readAll(); |
| 180 | − emit scriptLoaded(); | |
| 180 | + emit scriptLoaded(url); | |
| 181 | 181 | } else { |
| 182 | 182 | qDebug() << "ERROR Loading file:" << fileName; |
| 183 | − emit errorLoadingScript(); | |
| 183 | + emit errorLoadingScript(url); | |
| 184 | 184 | } |
| 185 | 185 | } else { |
| 186 | 186 | QNetworkAccessManager& networkAccessManager = NetworkAccessManager::getInstance(); |
| @@ -195,9 +195,10 @@ void ScriptEngine::handleScriptDownload() { · 8 unmodified lines | ||
| 195 | 195 | |
| 196 | 196 | if (reply->error() == QNetworkReply::NoError && reply->attribute(QNetworkRequest::HttpStatusCodeAttribute) == 200) { |
| 197 | 197 | _scriptContents = reply->readAll(); |
| 198 | + emit scriptLoaded(reply->url()); | |
| 198 | 199 | } else { |
| 199 | 200 | qDebug() << "ERROR Loading file:" << reply->url().toString(); |
| 200 | − emit errorLoadingScript(); | |
| 201 | + emit errorLoadingScript(reply->url()); | |
| 201 | 202 | } |
| 202 | 203 | } |
| 203 | 204 | |