Commit 5aabc706 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Check directory and not anymore only directory entries

On some file systems the time stamp of the directory is updated as the
file stamp is updated.

Change-Id: I825377e43c26abe89c882f054d175b31dd93768c
Reviewed-by: default avatarTim Jenssen <>
parent 3c6b2691
......@@ -95,9 +95,11 @@ QDateTime PuppetCreator::puppetSourceLastModified() const
sourceDirectoryPathes.append(basePuppetSourcePath + QStringLiteral("/qml2puppet/instances"));
foreach (const QString directoryPath, sourceDirectoryPathes) {
QDateTime directoryPathLastModified = QFileInfo(directoryPath).lastModified();
if (lastModified < directoryPathLastModified)
lastModified = directoryPathLastModified;
foreach (const QFileInfo fileEntry, QDir(directoryPath).entryInfoList()) {
QDateTime filePathLastModified = fileEntry.lastModified();
if (lastModified < filePathLastModified)
lastModified = filePathLastModified;
return lastModified;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment