src/EditProductTab2.cpp

changeset 454
2dfead81c72f
parent 429
4aac0b672667
child 458
ac216a75ca9b
--- a/src/EditProductTab2.cpp	Tue Jan 10 16:56:21 2023 +0100
+++ b/src/EditProductTab2.cpp	Thu Jan 12 14:34:14 2023 +0100
@@ -44,6 +44,7 @@
 
     /* Chilling */
     ui->chiller_typeEdit->setText(QCoreApplication::translate("ChillerType", g_chiller_types[product->eq_chiller_type]));
+    ui->brew_coolwithShow->setText(QCoreApplication::translate("ChillerType", g_chiller_types[product->eq_chiller_type]));
     ui->chiller_to79Edit->setValue(product->eq_chiller_to79);
     ui->chiller_volumeEdit->setValue(product->eq_chiller_volume);
     ui->chiller_lpmEdit->setValue(product->eq_chiller_lpm);
@@ -112,7 +113,7 @@
     product->eq_mash_volume = query.value("mash_volume").toDouble();
     product->eq_mash_max = query.value("mash_max").toDouble();
     product->eq_efficiency = query.value("efficiency").toDouble();
-    product->eq_chiller_type = query.value("chiller_type").toInt();
+    product->eq_chiller_type = product->brew_cooling_method = query.value("chiller_type").toInt();
     product->eq_chiller_to79 = query.value("chiller_to79").toDouble();
     product->eq_chiller_volume = query.value("chiller_volume").toDouble();
     product->eq_chiller_lpm = query.value("chiller_lpm").toDouble();
@@ -138,6 +139,8 @@
     ui->boil_sizeEdit->setValue(product->boil_size);
     ui->boil_timeEdit->setValue(product->boil_time);
     ui->efficiencyEdit->setValue(product->efficiency);
+    ui->brew_preboilvolShow->setValue(product->boil_size * 1.04);
+    ui->brew_aboilvolShow->setValue(product->batch_size * 1.04);
 
     calcFermentablesFromOG(estog);
     adjustWaters(factor);

mercurial