From 07cc95333f7d3bb208232d0a6dc46be63543cb8b Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 20 May 2022 15:05:03 +0200 Subject: [PATCH] StudioWelcome: Use lastModified Change-Id: Icb4ca8e4d69b61b12a038207c3a97c06b6f2140d Reviewed-by: Reviewed-by: Qt CI Bot Reviewed-by: Thomas Hartmann --- src/plugins/studiowelcome/examplecheckout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/studiowelcome/examplecheckout.cpp b/src/plugins/studiowelcome/examplecheckout.cpp index 7ee2a0bbb70..d0c3d40734c 100644 --- a/src/plugins/studiowelcome/examplecheckout.cpp +++ b/src/plugins/studiowelcome/examplecheckout.cpp @@ -436,7 +436,7 @@ static Utils::FilePath tempFilePath() DataModelDownloader::DataModelDownloader(QObject * /* parent */) { auto fileInfo = targetFolder().toFileInfo(); - m_birthTime = fileInfo.birthTime(); + m_birthTime = fileInfo.lastModified(); m_exists = fileInfo.exists(); connect(&m_fileDownloader, @@ -461,7 +461,7 @@ void DataModelDownloader::start() return; } - if (!m_forceDownload && m_fileDownloader.lastModified() < m_birthTime) + if (!m_forceDownload && (m_fileDownloader.lastModified() <= m_birthTime)) return; m_fileDownloader.start();