From 8ca9dd89c990946a8cdec15d90b7994a8de4f496 Mon Sep 17 00:00:00 2001 From: Gijs de Rooy Date: Wed, 22 Nov 2017 16:35:21 +0100 Subject: [PATCH] QtLauncher: fix aircraft ratings Index of rating indicators starts at 0 while ratings that correspond to a point/star/dot start at 1 --- src/GUI/AircraftRating.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/AircraftRating.qml b/src/GUI/AircraftRating.qml index 6547f8afe..6d75b4dea 100644 --- a/src/GUI/AircraftRating.qml +++ b/src/GUI/AircraftRating.qml @@ -32,7 +32,7 @@ Item { model: 5 delegate: Rectangle { - color: (model.index <= root.value) ? "#3f3f3f" : "#cfcfcf" + color: ((model.index + 1) <= root.value) ? "#3f3f3f" : "#cfcfcf" width: 12 height: 12 radius: 6