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
d6e52a55
Commit
d6e52a55
authored
Jun 12, 2013
by
Bryant
Browse files
Disable all UI for the joystick configuration when no joysticks are found.
parent
316620fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/JoystickWidget.cc
View file @
d6e52a55
...
...
@@ -59,9 +59,12 @@ void JoystickWidget::initUI()
m_ui
->
joystickFrame
->
setEnabled
(
true
);
}
}
// But if there're no joysticks, just disable everything.
else
{
m_ui
->
enableCheckBox
->
setEnabled
(
false
);
m_ui
->
joystickNameComboBox
->
addItem
(
tr
(
"No joysticks found. Connect and restart QGC to add one."
));
m_ui
->
joystickNameComboBox
->
setEnabled
(
false
);
}
// Add any missing buttons
...
...
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