mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-23 07:50:13 +01:00
Fix setting mtime/btime in tagreader
This commit is contained in:
parent
74d4f9e204
commit
c23a251ec3
@ -126,10 +126,10 @@ void TagReader::ReadFile(const QString& filename,
|
||||
song->set_url(url.constData(), url.size());
|
||||
song->set_filesize(info.size());
|
||||
|
||||
#if QT_VERSION >= 0x051000
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
|
||||
qint64 mtime = info.lastModified().toSecsSinceEpoch();
|
||||
qint64 btime = info.birthtime().toSecsSinceEpoch();
|
||||
#elif QT_VERSION >= 0x050800
|
||||
qint64 btime = info.birthTime().toSecsSinceEpoch();
|
||||
#elif QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
|
||||
qint64 mtime = info.lastModified().toSecsSinceEpoch();
|
||||
qint64 btime = info.created().toSecsSinceEpoch();
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user