From cfffe063445c18f41d1e120d178e9e7975d8f9ca Mon Sep 17 00:00:00 2001 From: Bryant Date: Wed, 12 Jun 2013 22:20:51 -0700 Subject: [PATCH] Disable all UI for the joystick configuration when no joysticks are found. --- src/ui/JoystickWidget.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/JoystickWidget.cc b/src/ui/JoystickWidget.cc index 73e8d24..9e4493b 100644 --- a/src/ui/JoystickWidget.cc +++ b/src/ui/JoystickWidget.cc @@ -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