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