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:
parent
96f7fb31d1
commit
d9572bdcdd
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user