Browse Source

Disable all UI for the joystick configuration when no joysticks are found.

QGC4.4
Bryant 12 years ago
parent
commit
cfffe06344
  1. 3
      src/ui/JoystickWidget.cc

3
src/ui/JoystickWidget.cc

@ -59,9 +59,12 @@ void JoystickWidget::initUI() @@ -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

Loading…
Cancel
Save