1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 19:31:02 +01:00

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

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);