summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-01-17 13:17:42 +0100
committerDavid Schulz <david.schulz@qt.io>2022-01-17 12:25:52 +0000
commit22f4e9497d63c68286f3b6fe5055da56c2d7e055 (patch)
tree548a0d281a4e6859abafbea4d7f61ccc00da038a
parent9be03a826d5d7b45e3ce2f20a7641ec29dee07b6 (diff)
downloadqt-creator-22f4e9497d63c68286f3b6fe5055da56c2d7e055.tar.gz
CMake: Fix build dir scan filter
Fixes: QTCREATORBUG-26846 Change-Id: I54f0249410cf0dd5cc6703767cea187a2d843868 Reviewed-by: hjk <hjk@qt.io>
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp
index 601ed3a1e7..bb00d0b05d 100644
--- a/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp
@@ -79,7 +79,7 @@ static QStringList scanDirectory(const FilePath &path, const QString &prefix)
QStringList result;
qCDebug(cmInputLog) << "Scanning for directories matching" << prefix << "in" << path;
- foreach (const FilePath &entry, path.dirEntries({prefix + ".*"}, QDir::Dirs | QDir::NoDotAndDotDot)) {
+ foreach (const FilePath &entry, path.dirEntries({prefix + "*"}, QDir::Dirs | QDir::NoDotAndDotDot)) {
QTC_ASSERT(entry.isDir(), continue);
result.append(entry.toString());
}