From 1fe91ada05147a83adb663a818cb1b1cec3d2bd3 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed, 5 Oct 2022 21:01:04 -0700 Subject: [PATCH] footage: use null timestamp for invalid footage modified time --- app/node/project/footage/footage.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/node/project/footage/footage.cpp b/app/node/project/footage/footage.cpp index 307ce247b..fd936faf6 100644 --- a/app/node/project/footage/footage.cpp +++ b/app/node/project/footage/footage.cpp @@ -544,7 +544,12 @@ void Footage::CheckFootage() if (!fn.isEmpty()) { QFileInfo info(fn); - qint64 current_file_timestamp = info.lastModified().toMSecsSinceEpoch(); + qint64 current_file_timestamp; + if (!info.lastModified().isValid()) { + current_file_timestamp = 0; + } else { + current_file_timestamp = info.lastModified().toMSecsSinceEpoch(); + } if (current_file_timestamp != timestamp()) { // File has changed!