aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-01-21 13:55:37 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-01-22 09:19:28 +0100
commitadece5d3bb5940d7bb9f7afe49ed4ce10ee60c1b (patch)
treed080c1d34267d83be28176e37777e0a49961ad82 /tools
parent2e07bf77bb9c08cc30a7ab29ae08b1523bbc1052 (diff)
qmllint: Fix auto-importing of qmltypes from same directory
Fixes: QTBUG-90513 Change-Id: Ic39e72d6df20be30c61123a7f8091d70dbc2d924 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 9b407b68d1fc0abe08091aa7ca007fbf0f03fb89)
Diffstat (limited to 'tools')
-rw-r--r--tools/qmllint/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp
index a877b20335..428925c2e8 100644
--- a/tools/qmllint/main.cpp
+++ b/tools/qmllint/main.cpp
@@ -171,8 +171,10 @@ int main(int argv, char *argc[])
} else {
// If none are given explicitly, use the qmltypes files from the current directory.
QDirIterator it(".", {"*.qmltypes"}, QDir::Files);
- while (it.hasNext())
+ while (it.hasNext()) {
+ it.next();
qmltypesFiles.append(it.fileInfo().absoluteFilePath());
+ }
}
#else