diff -r 722a4eed545d -r bb6c06910f0f src/EditProduct.cpp --- a/src/EditProduct.cpp Mon May 02 22:42:19 2022 +0200 +++ b/src/EditProduct.cpp Tue May 03 20:05:04 2022 +0200 @@ -1092,6 +1092,23 @@ } +void EditProduct::calcSupplies() +{ + if (product->inventory_reduced > PROD_STAGE_PACKAGE) { + ui->ok_pmptLabel->setVisible(false); + ui->ok_pmptIcon->setVisible(false); + return; + } + + qDebug() << "calcSupplies() f:" << product->fermentables_ok /*<< "h:" << product->hops_ok << "m:" << product->miscs_ok << "y:" << product->yeasts_ok << "w:" << product->waters_ok*/; + if (product->fermentables_ok /*&& product->hops_ok && product->miscs_ok && product->yeasts_ok && product->waters_ok */) { + ui->ok_pmptIcon->setPixmap(QPixmap(QString::fromUtf8(":/icons/silk/tick.png"))); + } else { + ui->ok_pmptIcon->setPixmap(QPixmap(QString::fromUtf8(":/icons/silk/error.png"))); + } +} + + void EditProduct::refreshAll() { refreshFermentables();