forked from qt-creator/qt-creator
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 <ulf.hermann@qt.io>
This commit is contained in:
@@ -1133,7 +1133,7 @@ void ModelManagerInterface::maybeScan(const PathsAndLanguages &importPaths)
|
||||
pathToScan.maybeInsert(importPath);
|
||||
}
|
||||
|
||||
if (pathToScan.length() > 1) {
|
||||
if (pathToScan.length() >= 1) {
|
||||
QFuture<void> result = Utils::runAsync(&ModelManagerInterface::importScan,
|
||||
workingCopyInternal(), pathToScan,
|
||||
this, true, true, false);
|
||||
|
Reference in New Issue
Block a user