qmllssettings: Fix incorrect detecting of latest version

Update the latestVersion in the loop. Otherwise we always compare to
initial value and consequently the last installed version incorrecyly
becomes the latest version.

Fixes: QTCREATORBUG-30423
Change-Id: I7083928c5e371f0337677eacf1b3b4da50358a7c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Semih Yavuz
2024-02-23 11:44:17 +01:00
parent 98ffe3d9d0
commit 1b53c931c5

View File

@@ -49,6 +49,7 @@ static FilePath evaluateLatestQmlls()
if (latestQmakeFilePath == qmakeNow && latestUniqueId >= v->uniqueId()) if (latestQmakeFilePath == qmakeNow && latestUniqueId >= v->uniqueId())
continue; continue;
} }
latestVersion = vNow;
latestQmlls = qmllsNow; latestQmlls = qmllsNow;
latestQmakeFilePath = qmakeNow; latestQmakeFilePath = qmakeNow;
latestUniqueId = uniqueIdNow; latestUniqueId = uniqueIdNow;