1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-01 18:29:16 +01:00

OP-970 Adds antenna warning dialog when activating built in modem for Revolution.

This commit is contained in:
Fredrik Arvidsson 2013-05-25 09:42:26 +02:00
parent 5fcc8a1785
commit 03a2e82ba3

View File

@ -32,6 +32,7 @@
#include "hwsettings.h"
#include <QDesktopServices>
#include <QUrl>
#include <QMessageBox>
ConfigRevoHWWidget::ConfigRevoHWWidget(QWidget *parent) : ConfigTaskWidget(parent)
@ -291,6 +292,7 @@ void ConfigRevoHWWidget::modemPortChanged(int index)
m_ui->cbTxPower->setVisible(true);
m_ui->lblInitFreq->setVisible(true);
m_ui->leInitFreq->setVisible(true);
QMessageBox::warning(this, tr("Warning"), tr("Activating the Radio requires an antenna be attached, or modem damage will occur."));
} else {
m_ui->lblTxPower->setVisible(false);
m_ui->cbTxPower->setVisible(false);