Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e14a4164
Commit
e14a4164
authored
Jul 25, 2016
by
Rustom Jehangir
Committed by
Daniel Agar
Jul 26, 2016
Browse files
Fix persistency of joystickEnable setting
parent
18ab0fef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Vehicle/Vehicle.cc
View file @
e14a4164
...
...
@@ -1088,7 +1088,12 @@ void Vehicle::_saveSettings(void)
settings
.
beginGroup
(
QString
(
_settingsGroup
).
arg
(
_id
));
settings
.
setValue
(
_joystickModeSettingsKey
,
_joystickMode
);
settings
.
setValue
(
_joystickEnabledSettingsKey
,
_joystickEnabled
);
// The joystick enabled setting should only be changed if a joystick is present
// since the checkbox can only be clicked if one is present
if
(
qgcApp
()
->
toolbox
()
->
joystickManager
()
->
joysticks
().
count
())
{
settings
.
setValue
(
_joystickEnabledSettingsKey
,
_joystickEnabled
);
}
}
int
Vehicle
::
joystickMode
(
void
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment