src/EditProduct.cpp

changeset 454
2dfead81c72f
parent 436
d1a6c269ba6a
child 456
6b10c34f74f5
--- a/src/EditProduct.cpp	Tue Jan 10 16:56:21 2023 +0100
+++ b/src/EditProduct.cpp	Thu Jan 12 14:34:14 2023 +0100
@@ -89,9 +89,6 @@
 	ui->beerstyleEdit->addItem(query.value(0).toString()+" "+query.value(1).toString()+" "+query.value(2).toString());
     }
 
-    for (int i = 0; i < 5; i++)
-	ui->brew_coolwithEdit->addItem(QCoreApplication::translate("ChillerType", g_chiller_types[i]));
-
     ui->brew_aerwithEdit->addItem(tr("None"));
     ui->brew_aerwithEdit->addItem(tr("Air"));
     ui->brew_aerwithEdit->addItem(tr("Oxygen"));
@@ -503,7 +500,7 @@
     ui->brew_whirlpool6Edit->setValue(product->brew_whirlpool6);
     ui->brew_whirlpool2Edit->setValue(product->brew_whirlpool2);
     ui->brew_cooltoEdit->setValue(product->brew_cooling_to);
-    ui->brew_coolwithEdit->setCurrentIndex(product->brew_cooling_method);
+    ui->brew_coolwithShow->setText(QCoreApplication::translate("ChillerType", g_chiller_types[product->eq_chiller_type]));
     ui->brew_cooltimeEdit->setValue(product->brew_cooling_time);
 
     ui->brew_trublossEdit->setValue(product->brew_fermenter_tcloss);
@@ -673,7 +670,6 @@
     connect(ui->brew_aboilsgEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilsg_changed);
     connect(ui->brew_aboilvolEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilvol_changed);
     connect(ui->brew_aboilButton, SIGNAL(clicked()), this, SLOT(brew_aboil_button()));
-    connect(ui->brew_coolwithEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditProduct::brew_cooling_method_changed);
     connect(ui->brew_cooltoEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_cooling_to_changed);
     connect(ui->brew_cooltimeEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_cooling_time_changed);
     connect(ui->brew_whirlpool9Edit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_whirlpool9_changed);

mercurial