forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user