From 9b407b68d1fc0abe08091aa7ca007fbf0f03fb89 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 21 Jan 2021 13:55:37 +0100 Subject: qmllint: Fix auto-importing of qmltypes from same directory Fixes: QTBUG-90513 Pick-to: 6.0 Change-Id: Ic39e72d6df20be30c61123a7f8091d70dbc2d924 Reviewed-by: Fabian Kosmale --- tools/qmllint/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') 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 -- cgit v1.2.3