src/EditRecipe.cpp

changeset 365
4bc746c65650
parent 359
dfbb012c631c
child 395
7212b980a527
--- a/src/EditRecipe.cpp	Tue Jul 19 16:00:52 2022 +0200
+++ b/src/EditRecipe.cpp	Wed Jul 20 12:44:02 2022 +0200
@@ -341,7 +341,6 @@
     ui->sp_phEdit->setValue(recipe->sparge_ph);
     ui->sp_acidtypeEdit->setCurrentIndex(recipe->sparge_acid_type);
     ui->sp_acidpercEdit->setValue(recipe->sparge_acid_perc);
-    ui->sp_acidvolEdit->setValue(recipe->sparge_acid_amount);
 
     // All signals from tab "Generic"
     connect(ui->lockedEdit, &QCheckBox::stateChanged, this, &EditRecipe::is_changed);
@@ -410,6 +409,7 @@
     connect(ui->spargeGroup, SIGNAL(buttonClicked(int)), this, SLOT(sp_group_changed(int)));
     connect(ui->sp_acidtypeEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditRecipe::sp_type_changed);
     connect(ui->sp_phEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::sp_ph_changed);
+    connect(ui->sp_volEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::sp_vol_changed);
     connect(ui->sp_acidvolEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::sp_acid_changed);
     setLocked(recipe->locked);
 

mercurial