| 1285 | } |
| 1286 | |
| 1287 | void |
| 1288 | SourceWidget::onToggleAGCEnabled(void) |
| 1289 | { |
| 1290 | this->setAGCEnabled(this->ui->agcEnabledCheck->isChecked()); |
| 1291 | |
| 1292 | if (m_analyzer != nullptr) { |
| 1293 | try { |
| 1294 | m_analyzer->setAGC(this->panelConfig->agcEnabled); |
| 1295 | } catch (Suscan::Exception &) { |
| 1296 | (void) QMessageBox::critical( |
| 1297 | this, |
| 1298 | "SigDigger error", |
| 1299 | "Source does not allow toggling the AGC setting", |
| 1300 | QMessageBox::Ok); |
| 1301 | } |
| 1302 | } |
| 1303 | } |
| 1304 | |
| 1305 | void |
| 1306 | SourceWidget::onAntennaChanged(int) |
no test coverage detected