]> git.sesse.net Git - nageru/blobdiff - mainwindow.cpp
Make the locut filter possible to disable.
[nageru] / mainwindow.cpp
index 77daf078b0000e643e2b7a5c2bc2aa0e931bed8a..5535c151bfcf2594390d5bdb141785acfa4c77de 100644 (file)
@@ -110,6 +110,9 @@ void MainWindow::mixer_created(Mixer *mixer)
 
        connect(ui->locut_cutoff_knob, &QDial::valueChanged, this, &MainWindow::cutoff_knob_changed);
        cutoff_knob_changed(ui->locut_cutoff_knob->value());
+       connect(ui->locut_enabled, &QCheckBox::stateChanged, [this](int state){
+               global_mixer->set_locut_enabled(state == Qt::Checked);
+       });
 
        // Not QDial::valueChanged, as we call setValue() all the time.
        connect(ui->gainstaging_knob, &QAbstractSlider::sliderMoved, this, &MainWindow::gain_staging_knob_changed);