diff -r 96e239584db5 -r 91af2c697345 src/EditProductTab3.cpp --- a/src/EditProductTab3.cpp Mon May 02 11:48:12 2022 +0200 +++ b/src/EditProductTab3.cpp Mon May 02 16:40:41 2022 +0200 @@ -257,6 +257,13 @@ colorh += product->fermentables.at(i).f_amount * product->fermentables.at(i).f_color * Utils::get_kt(product->fermentables.at(i).f_color); colorn += (product->fermentables.at(i).f_percentage / 100) * product->fermentables.at(i).f_color; // For 8.6 Pt wort. } + if (product->fermentables.at(i).f_added == 4) { // Bottle priming + ui->bottle_sug_weightShow->setValue(product->fermentables.at(i).f_amount * 1000); + // product->fermentables.at(i).f_name select in dropdown + } + if (product->fermentables.at(i).f_added == 5) { // Keg priming + + } } qDebug() << " colort" << colort << "colorh" << colorh << "colorn" << colorn; qDebug() << " psugar" << psugar << "pcara" << pcara << "mvol" << mvol;