aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-03-24 15:34:36 -0700
committerChris Robinson <[email protected]>2017-03-24 15:34:36 -0700
commit1d559ec703653386ca65175d884f7487b36032e5 (patch)
treeb9ab68a44b0045b67802c93e2c71fce21e61f35e
parent5c37eca2c50c57b460406101737b5128798ad306 (diff)
Properly update the resampler label in the UI
-rw-r--r--utils/alsoft-config/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index c2e36fb4..26d05f8f 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -596,7 +596,8 @@ void MainWindow::loadConfig(const QString &fname)
ui->srcSendLineEdit->insert(settings.value("sends").toString());
QString resampler = settings.value("resampler").toString().trimmed();
- ui->resamplerSlider->setValue(0);
+ ui->resamplerSlider->setValue(2);
+ ui->resamplerLabel->setText(resamplerList[2].name);
/* The "cubic" and "sinc8" resamplers are no longer supported. Use "sinc4"
* as a fallback.
*/
@@ -607,6 +608,7 @@ void MainWindow::loadConfig(const QString &fname)
if(resampler == resamplerList[i].value)
{
ui->resamplerSlider->setValue(i);
+ ui->resamplerLabel->setText(resamplerList[i].name);
break;
}
}