Fix updating of cover.

This commit is contained in:
craig.p.drummond
2013-03-18 21:19:26 +00:00
parent 32f0ff312f
commit 4cb16f3d68
4 changed files with 50 additions and 29 deletions

View File

@@ -306,10 +306,15 @@ void AudioCdDevice::cdMatches(const QList<CdAlbum> &albums)
}
}
void AudioCdDevice::setCover(const Covers::Image &img)
{
coverImage=img;
updateStatus();
}
void AudioCdDevice::setCover(const Song &song, const QImage &img, const QString &file)
{
if (song.isCdda() && song.artist==artist && song.album==album) {
coverImage=Covers::Image(img, file);
updateStatus();
if (song.isCdda() && song.albumartist==artist && song.album==album) {
setCover(Covers::Image(img, file));
}
}