forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user