diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-05-20 15:05:03 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-05-20 14:31:57 +0000 |
commit | 07cc95333f7d3bb208232d0a6dc46be63543cb8b (patch) | |
tree | 13bdde6e87bf612a381617388dc758a6150607c8 | |
parent | 5294c3a23bdc60d9952662f045479893fb4518d4 (diff) |
StudioWelcome: Use lastModified
Change-Id: Icb4ca8e4d69b61b12a038207c3a97c06b6f2140d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | src/plugins/studiowelcome/examplecheckout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/studiowelcome/examplecheckout.cpp b/src/plugins/studiowelcome/examplecheckout.cpp index 7ee2a0bbb7..d0c3d40734 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(); |