| 471 | } |
| 472 | |
| 473 | void |
| 474 | ProfileConfigTab::save() |
| 475 | { |
| 476 | bool modified = this->modified; |
| 477 | bool needsRestart = this->needsRestart; |
| 478 | |
| 479 | this->profile.setType( |
| 480 | this->ui->sdrRadio->isChecked() |
| 481 | ? SUSCAN_SOURCE_TYPE_SDR |
| 482 | : SUSCAN_SOURCE_TYPE_FILE); |
| 483 | |
| 484 | if (!this->hasTweaks) |
| 485 | this->onDeviceChanged(this->ui->deviceCombo->currentIndex()); |
| 486 | |
| 487 | this->onFormatChanged(this->ui->formatCombo->currentIndex()); |
| 488 | this->onBandwidthChanged(this->ui->bandwidthSpinBox->value()); |
| 489 | this->onCheckButtonsToggled(false); |
| 490 | this->onSpinsChanged(); |
| 491 | |
| 492 | if (!this->hasTweaks) |
| 493 | this->onAnalyzerTypeChanged(this->ui->analyzerTypeCombo->currentIndex()); |
| 494 | |
| 495 | this->modified = modified; |
| 496 | this->needsRestart = needsRestart; |
| 497 | } |
| 498 | |
| 499 | void |
| 500 | ProfileConfigTab::setUnchanged(void) |
nothing calls this directly
no test coverage detected