Don't crash if we can't write to the moodbar cache
This commit is contained in:
parent
6b32ecec27
commit
d24eaef2e5
@ -156,8 +156,10 @@ void MoodbarLoader::RequestFinished(MoodbarPipeline* request, const QUrl& url) {
|
||||
metadata.setUrl(url);
|
||||
|
||||
QIODevice* cache_file = cache_->prepare(metadata);
|
||||
if (cache_file) {
|
||||
cache_file->write(request->data());
|
||||
cache_->insert(cache_file);
|
||||
}
|
||||
|
||||
// Save the data alongside the original as well if we're configured to.
|
||||
if (save_alongside_originals_) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user