317 |
317 |
318 qDebug() << dup->record << dup->name; |
318 qDebug() << dup->record << dup->name; |
319 if (DB_product::save(dup, this)) { |
319 if (DB_product::save(dup, this)) { |
320 QMessageBox::information(this, tr("Copy Product"), tr("Copy Product export ready.")); |
320 QMessageBox::information(this, tr("Copy Product"), tr("Copy Product export ready.")); |
321 } else { |
321 } else { |
322 QMessageBox::warning(this, tr("Copy Product "), tr("Copy Product error.")); |
322 QMessageBox::warning(this, tr("Copy Product"), tr("Copy Product error.")); |
323 } |
323 } |
324 delete dup; |
324 delete dup; |
325 } |
325 } |
326 |
326 |
327 |
327 |
413 r->miscs = product->miscs; |
413 r->miscs = product->miscs; |
414 r->yeasts = product->yeasts; |
414 r->yeasts = product->yeasts; |
415 r->mashs = product->mashs; |
415 r->mashs = product->mashs; |
416 |
416 |
417 if (DB_recipe::save(r, this)) { |
417 if (DB_recipe::save(r, this)) { |
418 QMessageBox::information(this, tr("Copy Product"), tr("Copy Produuct to Recipe ready.")); |
418 QMessageBox::information(this, tr("Copy Product"), tr("Copy Product to Recipe ready.")); |
419 } else { |
419 } else { |
420 QMessageBox::warning(this, tr("Copy Product"), tr("Copy Product to Recipe error.")); |
420 QMessageBox::warning(this, tr("Copy Product"), tr("Copy Product to Recipe error.")); |
421 } |
421 } |
422 delete r; |
422 delete r; |
423 } |
423 } |