From 1ca3d612fa1751da579c413c57278c4c28b05a95 Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Wed, 3 May 2017 14:42:07 -0400 Subject: [PATCH] Use joystick enabled setter instead of direct assignment --- src/Vehicle/Vehicle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index 4e47d692f..7d40d9061 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -1364,7 +1364,7 @@ void Vehicle::_loadSettings(void) // Joystick enabled is a global setting so first make sure there are any joysticks connected if (qgcApp()->toolbox()->joystickManager()->joysticks().count()) { - _joystickEnabled = settings.value(_joystickEnabledSettingsKey, false).toBool(); + setJoystickEnabled(settings.value(_joystickEnabledSettingsKey, false).toBool()); } } -- 2.22.0