Commit 500a9959 authored by Jędrzej Nowacki's avatar Jędrzej Nowacki Committed by Oswald Buddenhagen
Browse files

Don't follow symlinks to directories.

Symlinks may create a directory loop, causing QtCreator to hang.

Change-Id: I701811bc2cc6d3c9efd8b51c1b80c7e5b4aa06ea
Reviewed-by: default avatarOswald Buddenhagen <>
parent fad45991
......@@ -521,7 +521,7 @@ static QSet<Utils::FileName> recursiveEnumerate(const QString &folder)
dir.setFilter(dir.filter() | QDir::NoDotAndDotDot);
foreach (const QFileInfo &file, dir.entryInfoList()) {
if (file.isDir())
if (file.isDir() && !file.isSymLink())
result += recursiveEnumerate(file.absoluteFilePath());
result += Utils::FileName(file);
Supports Markdown
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