call finished() when cached resource has already failed to load

This commit is contained in:
humbletim 2017-03-29 19:42:19 -04:00
parent 985924a476
commit 6f2f1d6452

View file

@ -191,7 +191,7 @@ ScriptableResource* ResourceCache::prefetch(const QUrl& url, void* extra) {
result->setObjectName(url.toString());
result->_resource = resource;
if (resource->isLoaded()) {
if (resource->isLoaded() || resource->_failedToLoad) {
result->finished(!resource->_failedToLoad);
} else {
result->_progressConnection = connect(