Skip to content

Commit

Permalink
Fix check for dsm radio button
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Mar 16, 2014
1 parent 3bed19d commit 8d6e0f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/QGCPX4VehicleConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ void QGCPX4VehicleConfig::toggleSpektrumPairing(bool enabled)
{
Q_UNUSED(enabled);

if (!ui->dsm2RadioButton->isChecked() && !ui->dsmxRadioButton && !ui->dsmx8RadioButton) {
if (!ui->dsm2RadioButton->isChecked() && !ui->dsmxRadioButton->isChecked()
&& !ui->dsmx8RadioButton->isChecked()) {
// Reject
QMessageBox warnMsgBox;
warnMsgBox.setText(tr("Please select a Spektrum Protocol Version"));
Expand Down

0 comments on commit 8d6e0f0

Please sign in to comment.