From 338fa26bc37ab1180090c3d7b58c5097cb10e70e Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 19 May 2020 11:18:45 +0200 Subject: [PATCH] QmlJS: Scan import paths, even if there is only one Previously a single QML import path would not be scanned. This did not usually happen to users, as there's almost always more than one path. But it could lead to unexpected behavior in tests that explicitly controled import paths. Change-Id: I015f44f183ad484c333ab7a4e5e98b87098620a7 Reviewed-by: Ulf Hermann --- src/libs/qmljs/qmljsmodelmanagerinterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.cpp b/src/libs/qmljs/qmljsmodelmanagerinterface.cpp index 3376cc37627..1eb54f73031 100644 --- a/src/libs/qmljs/qmljsmodelmanagerinterface.cpp +++ b/src/libs/qmljs/qmljsmodelmanagerinterface.cpp @@ -1133,7 +1133,7 @@ void ModelManagerInterface::maybeScan(const PathsAndLanguages &importPaths) pathToScan.maybeInsert(importPath); } - if (pathToScan.length() > 1) { + if (pathToScan.length() >= 1) { QFuture result = Utils::runAsync(&ModelManagerInterface::importScan, workingCopyInternal(), pathToScan, this, true, true, false);