Commit 26946ec2 authored by Daniel Teske's avatar Daniel Teske
Browse files

Generic Project: Show symlinked files (but not directories)



Task-number: QTCREATORBUG-6807
Change-Id: I3d99976444c8fa2882e4218377763ae34a681c18
Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Thorbjørn Lindeijer
parent 66170003
......@@ -138,8 +138,7 @@ void SelectableFilesModel::buildTree(const QString &baseDir, Tree *tree, QFuture
{
const QFileInfoList fileInfoList = QDir(baseDir).entryInfoList(QDir::Files |
QDir::Dirs |
QDir::NoDotAndDotDot |
QDir::NoSymLinks);
QDir::NoDotAndDotDot);
bool allChecked = true;
bool allUnchecked = true;
foreach (const QFileInfo &fileInfo, fileInfoList) {
......@@ -150,6 +149,8 @@ void SelectableFilesModel::buildTree(const QString &baseDir, Tree *tree, QFuture
}
++m_futureCount;
if (fileInfo.isDir()) {
if (fileInfo.isSymLink())
continue;
Tree *t = new Tree;
t->parent = tree;
t->name = fileInfo.fileName();
......
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