diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-01-21 13:55:37 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-01-21 14:17:59 +0100 |
commit | 9b407b68d1fc0abe08091aa7ca007fbf0f03fb89 (patch) | |
tree | 3ec13ebd59fdcd2a7333307f7e8ecd2bd0585bb5 /tools | |
parent | 7290f9b82ab715d4ffe1c1515d8248862dab8a3c (diff) |
qmllint: Fix auto-importing of qmltypes from same directory
Fixes: QTBUG-90513
Pick-to: 6.0
Change-Id: Ic39e72d6df20be30c61123a7f8091d70dbc2d924
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmllint/main.cpp | 4 |
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 |