src/EditProductTab3.cpp

changeset 517
64525ab563fc
parent 464
1fed3ff9a64e
--- a/src/EditProductTab3.cpp	Mon Oct 23 15:55:34 2023 +0200
+++ b/src/EditProductTab3.cpp	Mon Feb 26 16:05:53 2024 +0100
@@ -684,8 +684,10 @@
     qDebug() << "Add fermentable row";
 
     for (int i = 0; i < product->fermentables.size(); i++) {
-	if (product->fermentables.at(i).amount == 0 && product->fermentables.at(i).color == 0)
-	    return;	// Add only one at a time.
+	if (product->fermentables.at(i).amount == 0 &&
+	    product->fermentables.at(i).color == 0 &&
+	    product->fermentables.at(i).added < FERMENTABLE_ADDED_BOTTLE)
+	    return;	// Add only one at a time. Ignore packaging sugars.
     }
 
     newf.name = "Select one";

mercurial