mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-30 00:55:33 +01:00
CurrentAlbumCoverLoader: Should be not empty
This commit is contained in:
parent
99fb775e30
commit
877c9ca41a
@ -102,7 +102,7 @@ void CurrentAlbumCoverLoader::AlbumCoverReady(const quint64 id, AlbumCoverLoader
|
|||||||
QUrl thumbnail_url;
|
QUrl thumbnail_url;
|
||||||
if (!result.image_scaled.isNull()) {
|
if (!result.image_scaled.isNull()) {
|
||||||
temp_cover_thumbnail_ = make_unique<TemporaryFile>(temp_file_pattern_);
|
temp_cover_thumbnail_ = make_unique<TemporaryFile>(temp_file_pattern_);
|
||||||
if (temp_cover_thumbnail_->filename().isEmpty()) {
|
if (!temp_cover_thumbnail_->filename().isEmpty()) {
|
||||||
if (result.image_scaled.save(temp_cover_thumbnail_->filename(), "JPEG")) {
|
if (result.image_scaled.save(temp_cover_thumbnail_->filename(), "JPEG")) {
|
||||||
thumbnail_url = QUrl::fromLocalFile(temp_cover_thumbnail_->filename());
|
thumbnail_url = QUrl::fromLocalFile(temp_cover_thumbnail_->filename());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user