Skip to content

Commit

Permalink
Adjust maximum bandwidth according to sample rate
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake committed Aug 19, 2019
1 parent 2ac1cb0 commit 40b2226
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Components/ConfigDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ ConfigDialog::onLineEditsChanged(const QString &)
} else {
this->ui->sampleRateLine->setStyleSheet("");
this->profile.setSampleRate(sampRate);
this->ui->bwSpin->setMaximum(sampRate);

if (sampRate < this->ui->bwSpin->value())
this->ui->bwSpin->setValue(sampRate);
Expand Down

0 comments on commit 40b2226

Please sign in to comment.