diff --git a/ext/libstrawberry-tagreader/tagreader.cpp b/ext/libstrawberry-tagreader/tagreader.cpp index 8a4153954..badad2e56 100644 --- a/ext/libstrawberry-tagreader/tagreader.cpp +++ b/ext/libstrawberry-tagreader/tagreader.cpp @@ -174,7 +174,11 @@ void TagReader::ReadFile(const QString &filename, pb::tagreader::SongMetadata *s song->set_url(url.constData(), url.size()); song->set_filesize(info.size()); song->set_mtime(info.lastModified().toTime_t()); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) song->set_ctime(info.birthTime().toTime_t()); +#else + song->set_ctime(info.created().toTime_t()); +#endif std::unique_ptr fileref(factory_->GetFileRef(filename)); if (fileref->isNull()) {