310 dup->divide_type = dup->divide_parts = dup->divide_part = 0; |
310 dup->divide_type = dup->divide_parts = dup->divide_part = 0; |
311 dup->divide_size = 0; |
311 dup->divide_size = 0; |
312 dup->divide_factor = 1; |
312 dup->divide_factor = 1; |
313 dup->log_brew = dup->log_fermentation = dup->log_ispindel = dup->log_co2pressure = dup->locked = 0; |
313 dup->log_brew = dup->log_fermentation = dup->log_ispindel = dup->log_co2pressure = dup->locked = 0; |
314 dup->prop_volume[0] = dup->prop_volume[1] = dup->prop_volume[2] = dup->prop_volume[3] = 0; |
314 dup->prop_volume[0] = dup->prop_volume[1] = dup->prop_volume[2] = dup->prop_volume[3] = 0; |
|
315 /* |
|
316 * Reset measurement fields. |
|
317 */ |
|
318 for (int i = 0; i < dup->mashs.size(); i++) { |
|
319 dup->mashs[i].step_ph = 0; |
|
320 dup->mashs[i].step_sg = 0; |
|
321 } |
315 |
322 |
316 qDebug() << dup->record << dup->name; |
323 qDebug() << dup->record << dup->name; |
317 if (DB_product::save(dup, this)) { |
324 if (DB_product::save(dup, this)) { |
318 QMessageBox::information(this, tr("Copy Product"), tr("Copy Product export ready.")); |
325 QMessageBox::information(this, tr("Copy Product"), tr("Copy Product export ready.")); |
319 } else { |
326 } else { |