Commit 08ee3152 authored by Don Gagne's avatar Don Gagne

Add null check

parent 1888a8dc
...@@ -184,7 +184,7 @@ Rectangle { ...@@ -184,7 +184,7 @@ Rectangle {
id: joystickButton id: joystickButton
width: buttonWidth width: buttonWidth
setupIndicator: true setupIndicator: true
setupComplete: joystickManager.activeJoystick.calibrated setupComplete: joystickManager.activeJoystick ? joystickManager.activeJoystick.calibrated : false
exclusiveGroup: setupButtonGroup exclusiveGroup: setupButtonGroup
visible: multiVehicleManager.parameterReadyVehicleAvailable && joystickManager.joysticks.length != 0 visible: multiVehicleManager.parameterReadyVehicleAvailable && joystickManager.joysticks.length != 0
text: "JOYSTICK" text: "JOYSTICK"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment