Be more forgiving of broken permissions on the cache directory.

This commit is contained in:
John Maguire 2014-08-19 11:13:06 +02:00
parent 96f7fb31d1
commit d9572bdcdd
1 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,10 @@ void MoodbarLoader::RequestFinished(MoodbarPipeline* request, const QUrl& url) {
metadata.setUrl(url);
QIODevice* cache_file = cache_->prepare(metadata);
if (!cache_file) {
qLog(Warning) << "Error writing to moodbar cache";
return;
}
cache_file->write(request->data());
cache_->insert(cache_file);