From 306cadc6435cafb63c9f1225dc4a19da6933f8ec Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 5 Jan 2021 18:51:45 +0100 Subject: [PATCH] qmljs: fix matchImport method This is a guess fix without understanding what the algorithm should do. Change-Id: I06e258045ab966fd016295c1d8830bc6bdc83dca Reviewed-by: Marco Bubke Reviewed-by: Fawzi Mohamed --- src/libs/qmljs/qmljsimportdependencies.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/qmljs/qmljsimportdependencies.cpp b/src/libs/qmljs/qmljsimportdependencies.cpp index e6b919eaec3..eb4b0b649ab 100644 --- a/src/libs/qmljs/qmljsimportdependencies.cpp +++ b/src/libs/qmljs/qmljsimportdependencies.cpp @@ -304,7 +304,7 @@ ImportMatchStrength ImportKey::matchImport(const ImportKey &o, const ViewerConte return ImportMatchStrength(); const QString p1 = splitPath.at(iPath1); if (iPath2 < lenPath2) { - const QString p2 = splitPath.at(iPath2); + const QString p2 = o.splitPath.at(iPath2); if (p1 == p2) { ++iPath1; ++iPath2;