src/EditProductTab1.cpp

changeset 233
baf666307ebb
parent 227
7966bf14cc34
child 271
f56c0dff0a3d
equal deleted inserted replaced
232:6d3ba9c44f95 233:baf666307ebb
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

mercurial