# HG changeset patch # User Michiel Broek # Date 1708959953 -3600 # Node ID 64525ab563fc6da1fa769a3ddd086e623584b221 # Parent 9161465e0eac930e3b0c15b4221138d66e604bcc Version 0.4.3. Fix add fermentables in products when packaging sugar was defined but no amount was yet set. diff -r 9161465e0eac -r 64525ab563fc CMakeLists.txt --- a/CMakeLists.txt Mon Oct 23 15:55:34 2023 +0200 +++ b/CMakeLists.txt Mon Feb 26 16:05:53 2024 +0100 @@ -9,7 +9,7 @@ SET( bmsapp_VERSION_MAJOR 0 ) SET( bmsapp_VERSION_MINOR 4 ) -SET( bmsapp_VERSION_PATCH 2 ) +SET( bmsapp_VERSION_PATCH 3 ) # Compile flags diff -r 9161465e0eac -r 64525ab563fc src/EditProductTab3.cpp --- 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";