diff -r c5a3beb15eef -r 37bac72eff61 src/EditProduct.cpp --- a/src/EditProduct.cpp Thu May 19 22:29:24 2022 +0200 +++ b/src/EditProduct.cpp Fri May 20 12:47:35 2022 +0200 @@ -1001,6 +1001,14 @@ ui->bottle_sug_waterEdit->setValue(product->bottle_priming_water); ui->bottle_tempEdit->setValue(product->bottle_carbonation_temp); + ui->keg_volumeEdit->setValue(product->keg_amount); + ui->keg_carbEdit->setValue(product->keg_carbonation); + ui->keg_sug_amountShow->setValue(product->keg_priming_amount); + ui->keg_sug_waterEdit->setValue(product->keg_priming_water); + ui->keg_tempEdit->setValue(product->keg_carbonation_temp); + ui->keg_forcedEdit->setChecked(product->keg_forced_carb); + ui->keg_barShow->setValue(product->keg_pressure); + // Tab taste. ui->taste_dateEdit->setText(product->taste_date.toString("dd MMM yyyy")); ui->taste_rateEdit->setValue(product->taste_rate); @@ -1155,6 +1163,12 @@ connect(ui->bottle_sugarEdit, QOverload::of(&QComboBox::currentIndexChanged), this, &EditProduct::bottle_sugar_changed); connect(ui->bottle_sug_waterEdit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::bottle_water_changed); connect(ui->bottle_tempEdit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::bottle_temp_changed); + connect(ui->keg_volumeEdit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::kegs_volume_changed); + connect(ui->keg_carbEdit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::kegs_co2_changed); + connect(ui->keg_sugarEdit, QOverload::of(&QComboBox::currentIndexChanged), this, &EditProduct::kegs_sugar_changed); + connect(ui->keg_sug_waterEdit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::kegs_water_changed); + connect(ui->keg_tempEdit, QOverload::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::kegs_temp_changed); + connect(ui->keg_forcedEdit, &QCheckBox::stateChanged, this, &EditProduct::kegs_forced_changed); /* All signals from tab Tasting */