diff -r e68b27ad8a40 -r 17030224d919 src/EditRecipe.cpp --- a/src/EditRecipe.cpp Fri Apr 15 20:20:22 2022 +0200 +++ b/src/EditRecipe.cpp Sat Apr 16 13:05:47 2022 +0200 @@ -517,7 +517,6 @@ query.bindValue(":water", recipe->w1_name); query.exec(); found = query.first(); - qDebug() << "found name" << recipe->w1_name << found; } if (!found) { /* @@ -527,10 +526,8 @@ query.bindValue(":record", my_default_water); query.exec(); found = query.first(); - qDebug() << "found record" << my_default_water << found; } if (found) { - qDebug() << "found record" << query.value(0).toInt(); recipe->w1_calcium = query.value(3).toDouble(); recipe->w1_magnesium = query.value(8).toDouble(); recipe->w1_total_alkalinity = query.value(11).toDouble(); @@ -567,7 +564,6 @@ query.bindValue(":water", recipe->w2_name); query.exec(); if (query.first()) { - qDebug() << "found record" << query.value(0).toInt(); recipe->w2_calcium = query.value(3).toDouble(); recipe->w2_magnesium = query.value(8).toDouble(); recipe->w2_total_alkalinity = query.value(11).toDouble(); @@ -653,6 +649,10 @@ connect(ui->bs_nahco3Edit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::on_nahco3_changed); connect(ui->bs_caco3Edit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::on_caco3_changed); connect(ui->mw_autoEdit, &QCheckBox::stateChanged, this, &EditRecipe::on_calc_acid_clicked); + connect(ui->mw_phEdit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::on_mw_ph_changed); + connect(ui->mw_acidvolEdit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::on_mw_acid_changed); + connect(ui->mw_acidPick, QOverload::of(&QComboBox::currentIndexChanged), this, &EditRecipe::on_mw_type_changed); + connect(ui->w2_volEdit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::on_w2_vol_changed); ui->saveButton->setEnabled(false); ui->deleteButton->setEnabled((id >= 0) ? true:false);