When AudioCD changed, delete its cached downloaded cover.

Issue #1044
This commit is contained in:
Craig Drummond
2017-07-23 11:24:54 +01:00
committed by Craig Drummond
parent 8a85fcc4ba
commit cefb57776d
2 changed files with 5 additions and 0 deletions

View File

@@ -85,6 +85,7 @@
67. Store replaygain settings in Cantata's config file, as it appears MPD does
not persist changes.
68. If HTTP requests are redirected, copy over original headers.
69. When AudioCD changed, delete its cached downloaded cover.
2.0.1
-----

View File

@@ -138,6 +138,10 @@ AudioCdDevice::~AudioCdDevice()
mb=0;
}
#endif
// Remove any downloaded cover image...
if (!coverImage.fileName.isEmpty() && coverImage.fileName.startsWith(Utils::cacheDir(Covers::constCddaCoverDir, false))) {
QFile::remove(coverImage.fileName);
}
}
void AudioCdDevice::dequeue()