qmljs: fix matchImport method

This is a guess fix without understanding what the
algorithm should do.

Change-Id: I06e258045ab966fd016295c1d8830bc6bdc83dca
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
This commit is contained in:
Tim Jenssen
2021-01-05 18:51:45 +01:00
parent 8f79503ed2
commit 306cadc643

View File

@@ -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;