mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-23 14:11:55 +01:00
TagReaderTagLib: Touch file over saving cover art
This commit is contained in:
parent
49384ce294
commit
2b9e7db924
@ -1356,7 +1356,15 @@ bool TagReaderTagLib::SaveEmbeddedArt(const spb::tagreader::SaveEmbeddedArtReque
|
||||
// Not supported.
|
||||
else return false;
|
||||
|
||||
return fileref.file()->save();
|
||||
const bool result = fileref.file()->save();
|
||||
#ifdef Q_OS_LINUX
|
||||
if (result) {
|
||||
// Linux: inotify doesn't seem to notice the change to the file unless we change the timestamps as well. (this is what touch does)
|
||||
utimensat(0, QFile::encodeName(filename).constData(), nullptr, 0);
|
||||
}
|
||||
#endif // Q_OS_LINUX
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user