682 Fermentables newf; |
682 Fermentables newf; |
683 |
683 |
684 qDebug() << "Add fermentable row"; |
684 qDebug() << "Add fermentable row"; |
685 |
685 |
686 for (int i = 0; i < product->fermentables.size(); i++) { |
686 for (int i = 0; i < product->fermentables.size(); i++) { |
687 if (product->fermentables.at(i).amount == 0 && product->fermentables.at(i).color == 0) |
687 if (product->fermentables.at(i).amount == 0 && |
688 return; // Add only one at a time. |
688 product->fermentables.at(i).color == 0 && |
|
689 product->fermentables.at(i).added < FERMENTABLE_ADDED_BOTTLE) |
|
690 return; // Add only one at a time. Ignore packaging sugars. |
689 } |
691 } |
690 |
692 |
691 newf.name = "Select one"; |
693 newf.name = "Select one"; |
692 newf.origin = ""; |
694 newf.origin = ""; |
693 newf.supplier = ""; |
695 newf.supplier = ""; |