qtutils: attempt to work around qt bug

This commit is contained in:
itsmattkc
2022-06-18 07:44:19 -07:00
parent 5ef56c8047
commit 608cb05ae2
+5 -1
View File
@@ -70,7 +70,11 @@ QDateTime QtUtils::GetCreationDate(const QFileInfo &info)
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
return info.created();
#else
return info.birthTime();
QDateTime t = info.birthTime();
if (!t.isValid()) {
t = info.metadataChangeTime();
}
return t;
#endif
}