History

more work on improving script caching

ZappoMan committed 11 years ago

Commit 74d50a91 parent 36657c95 files · +69 −24Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 5 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+2−1
@@ -287,8 +287,9 @@ void ScriptEngine::loadURL(const QUrl& scriptURL) { · 286 unmodified lines
287 QNetworkReply* reply = networkAccessManager.get(networkRequest);287 QNetworkReply* reply = networkAccessManager.get(networkRequest);
288 connect(reply, &QNetworkReply::finished, this, &ScriptEngine::handleScriptDownload);288 connect(reply, &QNetworkReply::finished, this, &ScriptEngine::handleScriptDownload);
289 */289 */
290 bool isPending;
290 auto scriptCache = DependencyManager::get<ScriptCache>();291 auto scriptCache = DependencyManager::get<ScriptCache>();
291 scriptCache->getScript(url, this);292 scriptCache->getScript(url, this, isPending);
292 293
293 }294 }
294 }295 }