From 608cb05ae2e12fbc4f61e5b43db79b3cf5932960 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sat, 18 Jun 2022 07:44:19 -0700 Subject: [PATCH] qtutils: attempt to work around qt bug --- app/common/qtutils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/common/qtutils.cpp b/app/common/qtutils.cpp index e4cc56c28..8105de09b 100644 --- a/app/common/qtutils.cpp +++ b/app/common/qtutils.cpp @@ -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 }