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>
This commit is contained in:
Thomas Hartmann
2022-05-20 15:05:03 +02:00
parent 5294c3a23b
commit 07cc95333f

View File

@@ -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();