aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigorii Zimin <gzimin@luxoft.com>2020-08-04 18:19:34 +0300
committerGrigorii Zimin <gzimin@luxoft.com>2020-08-05 15:47:12 +0000
commit9c21bc494e4afef896c823759af7bd1492d40f86 (patch)
tree65d7b41f60b724e14d9ee77b57064b793eadc377
parenta6fd2860aed517c53f71a9ad8198c43950679761 (diff)
[vehicle] fix binding
Fixes: AUTOSUITE-1600 Change-Id: I5b547d2db810d0cbb858e4f66bad76897a37308c Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
-rw-r--r--apps/com.luxoft.vehicle/views/VehicleView.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/com.luxoft.vehicle/views/VehicleView.qml b/apps/com.luxoft.vehicle/views/VehicleView.qml
index 644bd2ba..929107c7 100644
--- a/apps/com.luxoft.vehicle/views/VehicleView.qml
+++ b/apps/com.luxoft.vehicle/views/VehicleView.qml
@@ -131,7 +131,7 @@ Item {
item.vehicleColor = Qt.binding( function() {return root.store.vehicle3DstudioColor});
}
- vehicleProxyPanel.opacity = Qt.binding(() => item.readyToChanges ? 0.0 : 1.0);
+ vehicleProxyPanel.opacity = Qt.binding(() => !!item && item.readyToChanges ? 0.0 : 1.0);
item.leftDoorOpen = Qt.binding( function() {return root.store.leftDoorOpened} );
item.rightDoorOpen = Qt.binding( function() {return root.store.rightDoorOpened});