574 ui->taste_notesEdit->setEnabled(stage == PROD_STAGE_TASTE); |
574 ui->taste_notesEdit->setEnabled(stage == PROD_STAGE_TASTE); |
575 ui->taste_rateEdit->setEnabled(stage == PROD_STAGE_TASTE); |
575 ui->taste_rateEdit->setEnabled(stage == PROD_STAGE_TASTE); |
576 if ((product->taste_color != "") && (product->taste_transparency != "") && (product->taste_head != "") && |
576 if ((product->taste_color != "") && (product->taste_transparency != "") && (product->taste_head != "") && |
577 (product->taste_aroma != "") && (product->taste_taste != "") && (product->taste_mouthfeel != "") && |
577 (product->taste_aroma != "") && (product->taste_taste != "") && (product->taste_mouthfeel != "") && |
578 (product->taste_aftertaste != "") && (product->taste_notes != "") && (product->taste_rate > 0) && |
578 (product->taste_aftertaste != "") && (product->taste_notes != "") && (product->taste_rate > 0) && |
579 (product->taste_date.isValid())) |
579 (product->taste_date.isValid() && (stage == PROD_STAGE_TASTE))) |
580 ui->taste_ackButton->show(); |
580 ui->taste_ackButton->show(); |
581 else |
581 else |
582 ui->taste_ackButton->hide(); |
582 ui->taste_ackButton->hide(); |
583 } |
583 } |
584 |
584 |