From d6e52a55d596239cd50bc27b66182858b0c1c784 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 73e8d2478..9e4493be9 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 -- 2.22.0