src/EditProductTab11.cpp

changeset 397
877420a13815
parent 332
146874d7bb47
child 404
47f1259378fe
equal deleted inserted replaced
396:c9a1d85c1487 397:877420a13815
172 ui->bottle_abvShow->setValue(0); 172 ui->bottle_abvShow->setValue(0);
173 ui->bottle_barShow->setValue(0); 173 ui->bottle_barShow->setValue(0);
174 product->bottle_abv = 0; 174 product->bottle_abv = 0;
175 product->bottle_bar = 0; 175 product->bottle_bar = 0;
176 } 176 }
177 ui->est_bottle_co2Edit->setValue(product->bottle_carbonation);
178 ui->est_bottle_co2Show->setValue(product->bottle_carbonation);
177 179
178 ui->keg_sugarLabel->setEnabled(! product->keg_forced_carb); 180 ui->keg_sugarLabel->setEnabled(! product->keg_forced_carb);
179 ui->keg_sugarEdit->setEnabled(! product->keg_forced_carb); 181 ui->keg_sugarEdit->setEnabled(! product->keg_forced_carb);
180 ui->keg_sug_weightLabel->setEnabled(! product->keg_forced_carb); 182 ui->keg_sug_weightLabel->setEnabled(! product->keg_forced_carb);
181 ui->keg_sug_weightShow->setEnabled(! product->keg_forced_carb); 183 ui->keg_sug_weightShow->setEnabled(! product->keg_forced_carb);
182 ui->keg_sug_waterLabel->setEnabled(! product->keg_forced_carb); 184 ui->keg_sug_waterLabel->setEnabled(! product->keg_forced_carb);
183 ui->keg_sug_waterEdit->setEnabled(! product->keg_forced_carb); 185 ui->keg_sug_waterEdit->setEnabled(! product->keg_forced_carb);
184 ui->keg_sug_amountLabel->setEnabled(! product->keg_forced_carb); 186 ui->keg_sug_amountLabel->setEnabled(! product->keg_forced_carb);
185 ui->keg_sug_amountShow->setEnabled(! product->keg_forced_carb); 187 ui->keg_sug_amountShow->setEnabled(! product->keg_forced_carb);
186 188
187 // keg_amount keg_carbonation keg_priming_sugar keg_priming_amount keg_priming_water keg_carbonation_temp keg_forced_carb keg_pressure
188 found1 = false; 189 found1 = false;
189 if (product->keg_amount) { 190 if (product->keg_amount) {
190 191
191 double Pressure = CarbCO2ToPressure(product->keg_carbonation, product->keg_carbonation_temp); 192 double Pressure = CarbCO2ToPressure(product->keg_carbonation, product->keg_carbonation_temp);
192 if (Pressure < 0) 193 if (Pressure < 0)
260 ui->keg_abvShow->setValue(product->final_abv); 261 ui->keg_abvShow->setValue(product->final_abv);
261 product->keg_abv = product->final_abv; 262 product->keg_abv = product->final_abv;
262 ui->keg_sug_amountShow->setValue(0); 263 ui->keg_sug_amountShow->setValue(0);
263 ui->keg_sug_weightShow->setValue(0); 264 ui->keg_sug_weightShow->setValue(0);
264 } 265 }
266 ui->est_kegs_co2Edit->setValue(product->keg_carbonation);
267 ui->est_kegs_co2Show->setValue(product->keg_carbonation);
265 } // if keg_amount 268 } // if keg_amount
266 } 269 }
267 270
268 271
269 /* 272 /*

mercurial